Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Enable container based on records count

RavitejaBaratam
5 - Atom

HI Team,

 

I have a workflow, I am fetching data from one excel file and writing into another excel file using alteryx. If my count of records from input file is zero then i want to disable the container which have output tool. Can any one help me to achieve this?

4 REPLIES 4
TheOC
16 - Nebula
16 - Nebula

hey @RavitejaBaratam 

Heres a community post showing how you can disable or enable containers using condition tools.
https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Dynamically-enabling-disabling-work...

 


Slightly easier to use, would be the detour tool:

https://help.alteryx.com/current/designer/detour-tool

Hope this helps!
TheOC

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
RavitejaBaratam
5 - Atom

HI Mate,

 

I am new to alteryx, Can you give me an example. my case is if my input file have 0 records then i dont want to write into output tool.  Just it need stop there. 

TheOC
16 - Nebula
16 - Nebula

hey bud,

No problem! I now understand your issue. I've actually done something similar before, following this guide:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Stop-workflow-on-a-condition/ta-p/1...

This is done through the test tool, but it is almost exactly your problem, test for if the data contains 0 records, and then stop the workflow.


I hope this helps,
TheOC

Cheers,
TheOC
Connect with me:
LinkedIn Bulien
Maskell_Rascal
13 - Pulsar

Hi @RavitejaBaratam 

 

If you have other processes that need to run in your workflow, you can use the Message tool to throw and error and stop processing downstream tools.

 

I've attached a sample workflow using this method. 

Maskell_Rascal_0-1620831683905.png

If you attach an Output tool to the end of the Formula Tools, you can see how it prevents the second workflow from writing to a workbook. 

 

If this solves you issue please mark answer as correct, if not let me know!

 

Thanks!

Phil

 

 

 

 

Labels
Top Solution Authors