Reputation: 113
I have set up a Script Email task as part of the OnError Event Handler in a SSIS package. But on error the event handler sends multiple emails. Understanding the reason of that I tried to implement the solution suggested in the following thread but that is not working for me. I am having an issue similar to one of the commentators where condition @[System::SourceID]== @[System::PackageID]
always evaluates to False so no email is being sent out at all now instead of multiple ones. I am using SQL Server 2012.
SSIS send email on error sending multiple errors
PS: I could not add comment to this thread due to lack of reputation points, so I had to start a new one.
Thanks, KK
Upvotes: 1
Views: 4633
Reputation: 1913
I always use @[System::SourceName] == @[System::PackageName]
Enlarge
Upvotes: 0
Reputation: 3939
The way I have resolved the multiple exception issue in the past is
that way you will only record one error per set of parent / child package failures
Upvotes: 2