DTS complete successfully when batch file fails (errorlevel > 0) -
04-05-2004
, 01:23 PM
Hello All!
DTS Task complete successfully even though the batch file fails.
I have DTS package that consists of some Process Task.
Each process task runs a batch file, which just runs one console
program.
In case of error, the console program returns an error code that >0.
When I run the batch and simulate error in the input file
the console report an error with error code >0 and errorlevel > 0 in
the batch file. It is the correct behavior.
When I execute the Task that run the same batch file from DTS it
executes successfully, but it should fail.
It looks like it does not use errorlevel value to check the completion
status.
Thank you in advance. |