This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have tried numerous ways to get the Detour tool to flip from Right to Left with no avail. I have tried both using the Condition tool connected to the Action tool and the action tool connected directly to the Control Parameter.
My ask is that someone get the Detour tool to flip from right to left based on an Action tool vs. a Question and prove that it can be done.
The problem occurs before it reaches the Action tool.
I am trying to pass a 'True' value to the Control Parameter tool via the Text Input tool. I don't think the Control Parameter tool is passing the 'True' value to the Action tool. I have tried attaching an Error Message tool to the Control Parameter but get nothing.
The key here is the actual value that is being passed in. It's a quirk with the Alteryx XML in that even though you see a "True" or "False", it's actually expecting a 1 or 0, or a boolean field type. If you actually pass in this, you'll get the correct results. Take a look at my attached example, which includes the batch macro that updates a Detour properly with a Control Parameter.
Also, just as a heads up you do not need to check the box to replace a specific string. You certainly can do it, but in this case it isn't necessary.