ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

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

ChrisMasonTampaBay
メテオール

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件の返信3
jrgo
マグネター

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
メテオール

Good idea, I'll give that a try.

ChrisMasonTampaBay
メテオール

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

ラベル
トップのソリューション投稿者