How do I ensure Control Container 2 is only activated when the workflow inside Control Container 1 did not generate any errors?
Solved! Go to Solution.
Rather than a control container approach, why not try Deoutrs within a Standard or Batch Macro? So that it works according to the trigger condition you set?
I solved something similar awhile ago.
I would look at using the Message Tool in between the two Control Containers and using the "Error - And Stop Passing Records Through This Tool" option - you can also turn on "Cancel Running Workflow on Error" in your Runtime settings (Cancel Running Workflow on Error - Alteryx Community) if needed.
In order for you to control the flow of this using a Control Container, you would need to identify what you mean by error. Is this a hard-stop Alteryx error as @alexnajm mentioned above or a business error like a condition in the data. His idea of the message tool can create an error or you can use the "Test" tool if you can test for the error(s) in that fashion. Setting cancel on error will fix that and not let it go to the next container control.
You would need a filter to check the data for business errors. If the condition is an error you would need to ensure your filter tool passes no rows and connect that output to your container control intput anchor.