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