Preventing Package from Failing in Foreach Loop Container

  • When my Send Mail Task encounters an error in the Foreach Loop Container, I setup the OnError event handler to send an email, which it's doing just fine. My problem is that the package stops and doesn't continue. I would like it to continue sending emails for subsequent email addresses.

    Thanks for any help you can provide.

  • There is a max errors setting on your foreach loop, I bet it is set to 1, set it higher. You could try 0 but I don't know if that means unlimited.

    CEWII

  • Thanks! That was it. I actually changed it to 0 and included several invalid email formats through and it worked. I got an email for each invalid email address as well as emails for the good ones.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply