Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Getting an error when creating multiple folders from Run Command

Purpose
7 - Meteor

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

7 REPLIES 7
nerces
8 - Asteroid

Can you please upload a copy of the bat file?

Purpose
7 - Meteor

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

Purpose
7 - Meteor

Just in case, I have attached all three of them in a zip file.  

nerces
8 - Asteroid

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.

Purpose
7 - Meteor

Nerces,

Can you please share the updated workflow? 

 

 

Purpose

nerces
8 - Asteroid

You'll find attached an ad hoc solution to your issue. It now works with as many reruns as you want as well as adding new countries before or after any runs.

Purpose
7 - Meteor

Nerces,

I greatly appreciate your input.  It worked great.  No more errors!

 

Purpose

Labels