![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a master control package that execute a bunch of other control packages which then execute actual DTS code modules. The problem is that a specific DTS packages fails and then returns a fail to the first calling control package which then traps the failed state and then it is supposed to fail and return a failed state to the master control package. The problem is that when I look at the logs, all packages fail as expected except for the master control which returns a status of OK and keeps going down the workflow. So, Package A performs an execute package on Package B, package B then performs an execute package on Package C. Package C runs and during its processing fails cause a specific error was trapped and it coded to return a failed state. Package C logs the Failed state of the package. Package B, gets this failed stats as it should and terminates its workflow as expected. It also logs a failed stats in the log. Package A, does not get the failed state of package B. What am I doing wrong? All 3 packages have the "Fail package on first error". The master control package should fail also but it isn't. |
#3
| |||
| |||
|
|
To force the child package failure to cause an error in the parent package step you need to set Fail on first error within the child package properties. -- Darren Green http://www.sqldts.com "Charles Bourque" <Charles Bourque (AT) discussions (DOT) microsoft.com> wrote in message news:63BF30D4-8058-4F76-8C6C-DB45DA52B490 (AT) microsoft (DOT) com... I have a master control package that execute a bunch of other control packages which then execute actual DTS code modules. The problem is that a specific DTS packages fails and then returns a fail to the first calling control package which then traps the failed state and then it is supposed to fail and return a failed state to the master control package. The problem is that when I look at the logs, all packages fail as expected except for the master control which returns a status of OK and keeps going down the workflow. So, Package A performs an execute package on Package B, package B then performs an execute package on Package C. Package C runs and during its processing fails cause a specific error was trapped and it coded to return a failed state. Package C logs the Failed state of the package. Package B, gets this failed stats as it should and terminates its workflow as expected. It also logs a failed stats in the log. Package A, does not get the failed state of package B. What am I doing wrong? All 3 packages have the "Fail package on first error". The master control package should fail also but it isn't. |
#4
| |||
| |||
|
|
I wasn't clear on that but each package has that option set ... "Darren Green" wrote: To force the child package failure to cause an error in the parent package step you need to set Fail on first error within the child package properties. -- Darren Green http://www.sqldts.com "Charles Bourque" <Charles Bourque (AT) discussions (DOT) microsoft.com> wrote in message news:63BF30D4-8058-4F76-8C6C-DB45DA52B490 (AT) microsoft (DOT) com... I have a master control package that execute a bunch of other control packages which then execute actual DTS code modules. The problem is that a specific DTS packages fails and then returns a fail to the first calling control package which then traps the failed state and then it is supposed to fail and return a failed state to the master control package. The problem is that when I look at the logs, all packages fail as expected except for the master control which returns a status of OK and keeps going down the workflow. So, Package A performs an execute package on Package B, package B then performs an execute package on Package C. Package C runs and during its processing fails cause a specific error was trapped and it coded to return a failed state. Package C logs the Failed state of the package. Package B, gets this failed stats as it should and terminates its workflow as expected. It also logs a failed stats in the log. Package A, does not get the failed state of package B. What am I doing wrong? All 3 packages have the "Fail package on first error". The master control package should fail also but it isn't. |
![]() |
| Thread Tools | |
| Display Modes | |
| |