Hi guys, I get an error:
Error: Run Command (10): The external program "C:\Users\MSV\AppData\Local\Temp\Engine_12600_3a77e2602592bb4bbc3c0121f4937ee4_\run.bat" returned an error code: 1
when running the workflow below:
I am running a batch file where I try to rename to a directory that contains an umlaut accented character - in this case 'test_ö'. Using the string directly in the cmd prompt works fine - why not from Alteryx? This problem only occurs when umlaut is present in the batch string. I am running version 22.1.1. cheers, Mikael
Solved! Go to Solution.
Can you share the view of your configuration of the run command tool?
Sure! Here it is:
@mikael_svalgaard I believe the issue may be related to the Code Page, as this can cause characters to render incorrectly. Depending on your locale, Windows will use a default code page when running CMD. For "Western European Latin" this is 1252. Adding a command to the start of your bat file, "CHCP 1252", will change the code page. Using the attached workflow, I was able to run a successful test.
Have you tried editing the working directory? I may be wrong but I believe the working directory will be that of the workflow. In this case, it appears to be inside of the temp folder that is created for the processing of the workflow: C:\Users\MSV\AppData\Local\Temp\Engine_12600_3a77e2602592bb4bbc3c0121f4937ee4_\run.bat.
Where is the run.bat file located that you are trying to run?
If you hard code in a file location for the .bat, do you still get an error?
Yes, this works on my machine as well - thank you very much!! -Mikael