dbTalk Databases Forums  

DTS complete successfully when batch file fails (errorlevel > 0)

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS complete successfully when batch file fails (errorlevel > 0) in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andy
 
Posts: n/a

Default 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.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.