![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am executing a DTSRun statement from a batch file running on Windows XP and am checking for ErrorLevel 1 in order to perform error handling tasks. The DTSRun statement runs without error, yet returns ErrorLevel 1. .... ********************************************** Results of Executing DTSRun statement DTSRun OnProgress: DTSStep_DTSDataPumpTask_2; 156 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 156 DTSRun OnFinish: DTSStep_DTSDataPumpTask_2 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2 DTSRun: Package execution complete. ******************************* --DTSLOAD: ERROR -- |
#3
| |||
| |||
|
|
Hi Maxwell, "Maxwell" wrote: I am executing a DTSRun statement from a batch file running on Windows XP and am checking for ErrorLevel 1 in order to perform error handling tasks. The DTSRun statement runs without error, yet returns ErrorLevel 1. .... ********************************************** Results of Executing DTSRun statement DTSRun OnProgress: DTSStep_DTSDataPumpTask_2; 156 Rows have been transformed or copied.; PercentComplete = 0; ProgressCount = 156 DTSRun OnFinish: DTSStep_DTSDataPumpTask_2 DTSRun OnStart: DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish: DTSStep_DTSExecuteSQLTask_2 DTSRun: Package execution complete. ******************************* --DTSLOAD: ERROR -- How do you know that the dts package runs without errors? Please enable the logging of the dts package and see the detailed logfile for informations of failed steps. I know one scenario where the manipulation of the workflow of the package by explicitly setting the execution status of steps can lead to this behaviour. Helge |
#4
| |||
| |||
|
|
I reran the batch file after editing the DTS package to log execution to SQLServer and to write errors out to a text file. Nothing was logged to the text file and the |
#5
| |||
| |||
|
|
Hi Maxwell, "Maxwell" wrote: I reran the batch file after editing the DTS package to log execution to SQLServer and to write errors out to a text file. Nothing was logged to the text file and the you mean no error was logged, didn't you? Please take a precise look at the logfile. There can be a strange behaviour, tellling you, that the package was executed successfully at the beginning of the log, but in the step execution list, there is an entry starting with "error on step ..." where the step was never executed. If this is the case, dtsrun will always return 1 as errorlevel, although the package was mainly executed successfull. If you haven't this scenario, I'm sorry, I haven't seen such behaviour before and have no further ideas in the moment. Helge |
![]() |
| Thread Tools | |
| Display Modes | |
| |