SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Stopping an SSIS Package on Data Flow Fail


Stopping an SSIS Package on Data Flow Fail

Author
Message
nick.latocha
nick.latocha
SSC Veteran
SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)

Group: General Forum Members
Points: 233 Visits: 265
I have an SSIS package with 5 separate data flow tasks. They are not linked and run in parallel. I;m trying to figure out how to stop the other data flow tasks when one task fails. Anyone got any idea?

I tried setting Max Fails etc but doesn't seem to stop the other tasks.
gbritton1
gbritton1
SSChasing Mays
SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)SSChasing Mays (631 reputation)

Group: General Forum Members
Points: 631 Visits: 864
nick.latocha (4/30/2014)
I have an SSIS package with 5 separate data flow tasks. They are not linked and run in parallel. I;m trying to figure out how to stop the other data flow tasks when one task fails. Anyone got any idea?

I tried setting Max Fails etc but doesn't seem to stop the other tasks.


Try to add a follow-up task (could be a script task or a ole command task that issues a SQL RAISERROR stmt). Connect your 5 parallel tasks to this new task but only upon failure.
nick.latocha
nick.latocha
SSC Veteran
SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)

Group: General Forum Members
Points: 233 Visits: 265
Hmmm that doesn't seem to work. The other Data Flow tasks seem to continue to run in parallel.

I tried something similar with a Script task which returned a dts error and that didn't work either.
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27097 Visits: 13268
If they run in paralllel, they are independent of each other.
However, this is not 100% true. Say you have 7 tasks which can run in parallel.
But only 4 of time can run at the same time (due to the number of processors available). If one crashes, the other 3 will continue to run. But no new data flow tasks will be started since the parent container (package, sequence container, for each loop, whatever) has already failed.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
nick.latocha
nick.latocha
SSC Veteran
SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)

Group: General Forum Members
Points: 233 Visits: 265
Koen Verbeeck (4/30/2014)
If they run in paralllel, they are independent of each other.
However, this is not 100% true. Say you have 7 tasks which can run in parallel.
But only 4 of time can run at the same time (due to the number of processors available). If one crashes, the other 3 will continue to run. But no new data flow tasks will be started since the parent container (package, sequence container, for each loop, whatever) has already failed.


This makes sense

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search