We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Activate Control Containers on No Error

shakir_juolay
8 - Asteroid

How do I ensure Control Container 2 is only activated when the workflow inside Control Container 1 did not generate any errors?

3 REPLIES 3
caltang
17 - Castor
17 - Castor

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?

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Enable-Disable-Container-based...

 

I solved something similar awhile ago.

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
alexnajm
18 - Pollux
18 - Pollux

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.

dataguyW
11 - Bolide

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.

Labels
Top Solution Authors