Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why won't my failure flow initiate when SSIS sequence container fails?

I have some SSIS sequence containers, and if any of the tasks in them fail I want to direct the flow to a SQL task that cleans everything up so I can address the issue and run it again without having duplicate data. My problem is that I can't get the flow directed into the SQL task even when something in one of the sequence containers fails. Seems like this should be the default behavior, but there must be some setting I'm mising. I played with setting FailParentOnFailure, but all this does is stops the rest of the package from running. I would insert an image to help with understanding what I have set up, but guess my reputation isn't good enough yet. :P

like image 435
BeachBum Avatar asked Nov 26 '11 00:11

BeachBum


People also ask

How does sequence container work in SSIS?

The Sequence container defines a control flow that is a subset of the package control flow. Sequence containers group the package into multiple separate control flows, each containing one or more tasks and containers that run within the overall package control flow.

Which kind of container can you use to execute your tasks to a certain number of times?

For loop container We can use this container for executing all inside tasks for a fixed number of executions.

How many types of loop containers are there in SSIS?

Integration Services provides four types of containers for building packages.

What is task host container in SSIS?

The task host container encapsulates a single task. In SSIS Designer, the task host is not configured separately; instead, it is configured when you set the properties of the task it encapsulates. For more information about the tasks that the task host containers encapsulate, see Integration Services Tasks.


1 Answers

I think in this definitely one instance where a picture would have helped others answer my question. I had 3 sequence containers all pointed to the same SQL task if they failed. I wanted the SQL task to run if ANY of the sequence containers had an error, so the precedence constraints had to be set to a logical OR, otherwise it would never run unless all 3 happened to fail. Changed it to OR and it worked just like I wanted.

like image 73
BeachBum Avatar answered Sep 28 '22 09:09

BeachBum