Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Check the exitance of a sheet in Excel file

yuanlu
7 - Meteor

I have an Excel file with multiple sheets, existence of those sheets are random. If a sheet is there, a series calculation will be perfomed based on the sheet data, if not, I wish there is a way to stop the workflow right away.

 

Is there a way to stop the workflow when workflow finds out a sheet does not exist like shown below? 

workflow.PNG

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @yuanlu 

 

Here is how you can do it.

1. Use the message tool like below. What the below message tool is doing is its checking recordnumber=1 exists (which means there is at least one row in false). If recordnumber=1 stop and error at that point.

atcodedog05_0-1648232650674.png

 

2. Configure the workflow in the runtime tab to Cancel running the workflow on error.

 

atcodedog05_1-1648232700066.png

 

Hope this helps : )

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @yuanlu 

Cheers and have a nice day!

jacob_kahn
12 - Quasar

@atcodedog05 - thanks for the clear explanation! Really helps!

atcodedog05
22 - Nova
22 - Nova

Happy to help and share : ) @jacob_kahn 

Cheers and have a nice day!

Labels
Top Solution Authors