This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
When I try to run this batch file in the events area of the workflow as "After Run", I get the following error:
Error: Designer x64: The Designer x64 reported: Error running Event #1: The external program ".\Test Workflow\Test Rename\2020-01\rename_files.bat" returned an error code: 1: The system could not find the environment option that was entered. (203)
With community search I found some discussions but unfortunately no feasible solution.
Hi @MichaD, as @ChrisTX suggested, see if you are able to run the batch file from command prompt to begin with.
As an alternative approach, you could also use the Run Command tool to execute batch files. I had put together this solution (attached) for another community post a couple of days ago, but should be a good reference in this case too. I too did get an Error code 1 a couple of times building this solution, and found the issue was that my source folder location was empty.
I am not sure my input here is adding much value, but thought I'll present an alternate approach and what worked for me.