Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Validation Errors and Error Propagation in SSIS 2012


Validation Errors and Error Propagation in SSIS 2012

Author
Message
ntr02
ntr02
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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 Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search