sql server - SSIS On Error Event Handler sending multiple emails on error -
i have set script email task part of onerror event handler in ssis package. on error event handler sends multiple emails. understanding reason of tried implement solution suggested in following thread not working me. having issue similar 1 of commentators condition @[system::sourceid]== @[system::packageid]
evaluates false no email being sent out @ instead of multiple ones. using sql server 2012.
ssis send email on error sending multiple errors
ps: not add comment thread due lack of reputation points, had start new one.
thanks, kk
the way have resolved multiple exception issue in past
- only raise email / log errors master packages
- add errorcounter variable , set zero
- inside onerror handler increase on error count 1
- add precedence constraint expression @[user::errorcounter]<=1
- send email or log error precedence constraint
that way record 1 error per set of parent / child package failures
Comments
Post a Comment