I am using the attached workflow to create several folders.
It works fine and with no errors for the 1st and 2nd runs. When I run it for the 3rd time without making any changes to the text input, I get the below error
Error: Run Command (10): Failed to run external program "C:\Alteryx\Report\runme.bat": %1 is not a valid Win32 application.
Any thoughts on what might be causing the error is greatly appreciated. Users will be saving multiple files from a workflow each time it is run. Although the folders themselves may not change, the number of files saved in those folders will change from one workflow run to the next. That is why the workflow will be run multiple times.
Purpose
Solved! Go to Solution.
Can you please upload a copy of the bat file?
Nerces,
I have uploaded 3 copies of the file.
runme.bat is the result when I run the workflow for the first time. It creates the folder as I expect.
runme - Copy.bat and runme - Copy (2).bat are files created after the 2nd and 3rd runs, respectively. Both seem to be blank.
Thanks for looking into it.
Purpose
If I'm not mistaken and am understanding your question correctly - the issue seems to be occurring because after the 2nd run, since everything exists, the workflow is overwriting the bat file with an empty bat file which causes the error when you try to run it on the 3rd attempt. I tried adding an extra blank line to the bat file after it was overwritten, and no matter how many times I ran it, the error did not reoccur.
Nerces,
Can you please share the updated workflow?
Purpose
Nerces,
I greatly appreciate your input. It worked great. No more errors!
Purpose