We are using a library created in VB.NET in SSIS – Script Task to carry out various database related activities.
How do I force the SSIS package to fail when the VB.NET class library invoke from within the package throws an exception?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/4ca66ffa-0005-40fe-96aa-58b1959a8120/
“Depending on how you have the rest of your package configured, you have the following options (maybe more):
Dts.TaskResult = (int)ScriptResults.Failure;, or (VB.Net)Dts.TaskResult = CInt(ScriptResults.Failure)throw new Exception(), or (VB.Net)Throw (New Exception())Option 1 requires that the rest of your components be connected to the Script via a Success precedence constraint.”