Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Run Command Error thrown in a stream that shouldn't have run?

ChrisMasonTampaBay
7 - Meteor

I have a workflow with three streams and each has a Run Command for a batch file. I take a count of records and have a filter for count >0 before the run command, but the run command still throws an error when there are no records?  Any thoughts?   

ChrisMasonTampaBay_0-1628283304335.png

 

3 REPLIES 3
jrgo
14 - Magnetar

Hi @ChrisMasonTampaBay 

 

I believe the Run Command has to execute something regardless of what's happening before it. I assume that formula tool is creating the script for the batch file the Run Command is to output then run. Instead of filtering all records, update your formula with a condition that if your count > 0 then output script else have it run the command "echo done" or some other arbitrary command.

ChrisMasonTampaBay
7 - Meteor

Good idea, I'll give that a try.

ChrisMasonTampaBay
7 - Meteor

Thanks! batch scripts aren't my forte so I appreciate the push!

Labels