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?
Solved! Go to Solution.
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.
Good idea, I'll give that a try.
Thanks! batch scripts aren't my forte so I appreciate the push!