Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Capture when Execute Package Task passed/failed

Author  Topic 

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2012-02-03 : 10:46:59
I have a package that calls multiple Execute Package tasks.
I am trying to send an email when any of these package calls fail.
I cant get this to work and was thinking of adding a script task that would capture if any of the tasks failed.

Does anyone know the C# syntax needed to capture the pass or fail results of a specific Execute Package task?

Thanks
Q

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-03 : 10:58:54
why?
how have you currently set send mail task

as per your scenario you should be setting it in onerror event of the execute package task
also set failpackageonfailure property to false for it so that loop continues with next package

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2012-02-03 : 11:53:12
Error handlers did the trick....
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-03 : 11:57:45
ok..cool...thats the way to go

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -