if I run this Javelin workflow through a post-process step in a dataset publish in GTdatamaker the Job is getting ‘Completed’ instead of ‘Failed’.
Below is the .bat file content. I am trying to fail the .bat file explicitly giving Exit code as 1 or anything apart from exit code 0 which signifies batch success.
echo "Start creating CD_ALL.xlsx">>C:\log.txt
cscript C:\MergeAll.vbs
if %errorlevel% NEQ 10 GOTO :error
GOTO :success
:error
echo "There was an error.">>C:\log.txt
echo "Exit the program" >>C:\log.txt
EXIT /B 1
:success
echo "CD_ALL Macro run completed">>>C:\log.txt
EXIT 0
The flow attached works correctly through Javelin directly just not through TDM portal.
GT DataMaker 4.8.x 4.9.x
Component : CA Test Data Manager
Currently, TDM GT DataMaker does not take any action on Javelin work failures or environment exit codes set.
It only registers if the Flow is run or not.