Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

The external program "Runcommand_MKDIR.bat" returned an error code: 1 - Debug Log

Ariharan
11 - Bolide

Hi All, 


I am trying to copy one file from another file using Batch File. (I have few restrictions and conditions, so only used this approach). The workflow runs fine on the gallery most of the time but randomly it fails with the below error message. 

 

The external program "***\Runcommand_MKDIR.bat" returned an error code: 1

 

I know Error code 1 usually means that Alteryx workflow can't find something, a file, part of a path, or an executable. But in my case file was already present in that directory. 

 

I have already passed the below value in the command Argument configuration window and I could see the single line log message like the file is locked by another process. 

 

Can someone help me with how to enable a high-level log on Alteryx Run Command Tool? 

 

I want to see which process/user has locked that file. 

 

Argument : 

Enter " > testlog.txt 2> testerrors.txt" in the Command Arguments field

Ariharan_0-1676832254895.png

 

Regards, 

Ariharan R

 

1 REPLY 1
gabrielvilella
14 - Magnetar

A quick google search gave me this, maybe this can help you  https://community.spiceworks.com/topic/897323-how-to-create-logs-while-running-batch-script