Problem with Event Handlers
I have Package that has only one Task "Execute Process Task" ; I created 3 event handlers ( OnPreExecute, OnError, OnPostExecute ) for this Task as well as to the Package. So the issue I am facing is, Whenever I execute the Package, Event Handlers (OnPreExecute and OnPostExecute ) of the Package are executing multiple times .......like One time when the Package Hits the PreExecute and one more time when Task inside the Package Hits the PreExeute. The same thing is happening for PostExeute Event Handler also. How to make the EventHandler of the Package to be executed only onces when the respective event occurs.. Is there any option to apply the scope ??
June 28th, 2011 9:47am

Yes, because Event Handlers fires on every event on the container. Every Task, Package etc. is a container as well. Every container reports the event result to it's parent container. You only need the Event Handler once. I prefer on package level
Free Windows Admin Tool Kit Click here and download it now
June 28th, 2011 11:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics