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

  1. only raise email / log errors master packages
  2. add errorcounter variable , set zero
  3. inside onerror handler increase on error count 1
  4. add precedence constraint expression @[user::errorcounter]<=1
  5. send email or log error precedence constraint

that way record 1 error per set of parent / child package failures


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -