Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Validation Errors and Error Propagation in SSIS 2012 Expand / Collapse
Posted Sunday, July 7, 2013 12:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, December 8, 2015 2:26 PM
Points: 1, Visits: 52
Hi everyone!

I got a question... here's the situation:

Do the validation errors at runtime in SSIS packages have a particular behavior when is comes to error propagation?

I have a package with a Send Mail Task that gets the recipients list (CC included) from a table in a database, so at design time I set the DelayValidation property to true in order to execute the package.

The send mail task is inside a foreach loop and I've set the Propagate system variable to false in the loop's onerror event handler... therefore if an error ever occur inside the loop it wouldn't be propagated to higher levels.

The thing is that at runtime could not there be recipients at all (just an empty string) and it seems that case is causing an error to propagate to the package level regarding the onerror handler of the loop.

I've tried with other type of errors like setting an invalid mail (not empty) and the package works as expected: the fail in one iteration does not prevent the loop from keeping iterating.

The error is "there were errors during task validation"

Thanks in advance and warm regards :)
Post #1470980
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse