Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 onpost execute firing multiple times

Author  Topic 

tybaltzeke
Starting Member

28 Posts

Posted - 2009-05-05 : 16:37:14
Can anyone think of a reason onpost execute script task would fire multiple times?? (i have a message box up top saying entering onpost execute which is showing up multiple times..) shouldn't it only execute once ??

Also is there any reason a sendmail task which is disabled should fire?

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2009-05-05 : 16:43:31
The OnPostExecute will only execute once upon the compleiton of the task/package.

Do you have different tasks and have the same "Script" component on the "OnPostExecute" handler for all the tasks?

For your second question...when you say "disabled" ..how exactly did you disable it?
Go to Top of Page

tybaltzeke
Starting Member

28 Posts

Posted - 2009-05-05 : 21:58:30
Do you have different tasks and have the same "Script" component on the "OnPostExecute" handler for all the tasks?

no i am executing a standalone package, and i to debug i have carefully labelled the msgbox so i know that this unique script is executing 8x. in the execution log i see the folloing
task script task
start(8)
validation has started(8)

does that help?

For your second question...when you say "disabled" ..how exactly did you disable it?
right click on sendmail and click disable.
Go to Top of Page
   

- Advertisement -