Hello,
I am currently running a Schedule that triggers an Alteryx workflow and then moves the source files to an archive, afterwards. I am triggering the Alteryx workflow with a batch file (using AlteryxEngineCmd.exe), but as of now, when there is an error in the Alteryx workflow (e.g. relevant files are missing), the .bat file doesn't capture it and send it to my schedule, meaning it continues to archive the source file. Is there any way to make Alteryx send an error message so that the batch files terminates out of error?
Solved! Go to Solution.
Yes you can handle the normal error code status from Alteryx. Something like:
"C:\Program Files\Alteryx\bin\AlteryxEngineCmd.exe" C:\Repos\TestError.yxmd >> c:\temp\alteryxcmd.log if %ERRORLEVEL% neq 0 ( echo Handle the log file! exit /B %ERRORLEVEL% ) echo Do Something Fun and Exciting!
The log from the execution will be written to C:\temp\alteryxcmd.log
The batch file will abort with the same error code as Alteryx.
If you don't care about warnings then change the 'neq 0' to 'equ 2'
User | Count |
---|---|
19 | |
15 | |
15 | |
9 | |
8 |