Reputation: 4239
In an SSIS package, I have a For Loop Container task with the EvalExpression set to true (so that it runs forever). If any tasks inside the For Loop Container fail, then the package must fail -- except for the Execute Package task (that calls a child package). If that fails, then the parent package should move onto the next task.
I tried setting the MaximumErrorCount of the Execute Package task to 0, but that didn't help. I tried setting the MaximumErrorCount of the For Loop Container task to 0, but that ignores the errors of all the tasks within the For Loop Container task.
Any idea how I can ignore errors on only the Execute Package task -- within a For Loop Container.
Upvotes: 12
Views: 32342
Reputation: 1994
Upvotes: 7
Reputation: 259
A better way to do this is to go to the OnError handler of your execute package task and set the System variable "Propogate" to false. This will stop the error from bubbling upwards to your loop container.
Upvotes: 13
Reputation: 4239
The answer is to use the FailPackageOnFailure property for all the tasks that should cause the package to stop and set the MaximumErrorCount of the For Loop Container task to 0.
Upvotes: 9