Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS execution using DTEXEC in a batch script

$
0
0

Hi,

Let me set the context first. I am executing an SSIS package using DTEXEC command in a batch script. The SSIS package takes an input text file(A.txt) to execute a stored procedure and updates the database table. From the batch file, I write the return code of the DTEXEC command to a file.

Now, my problem is that the ERRORLEVEL in the batch file does not capture all failures. When I delete the input text file(A.txt) and run the batch file, I expect the batch file failing on the data flow task component (which involves the input text file), but the ERRORLEVEL in the batch file is still 0, which means successful execution of the SSIS package.

Could anyone help me understand this behavior of the DTEXEC command? I want the error code to be captured in the errorlevel when a data flow task component of an SSIS package fails. How do I do it?

Thanks,

Veena


Thanks! Veena


Viewing all articles
Browse latest Browse all 24688

Trending Articles