In my package, I have an ActiveX Script Task set up that essentially checks for records in a table. Within the ActiveX Script, if the records exist, I set
Main = DTSTaskExecResult_Success
If there are no records, I set
Main = DTSTaskExecResult_Failure
I've set up the DTS workflow so that if the ActiveX Script task is successful, the package continues to the next step (using the Green "On Success" workflow arrow). If the task fails, the package goes to a different step (using the Red "On Failure" workflow arrow).
The problem I'm having is that when my ActiveX Script fails (as expected), the entire package fails without proceeding through the subsequent workflow steps to handle the failure. I get the error message:
"The task reported failure on execution"
And then when I hit OK, the whole package stops.
I'm not sure why this is occurring. I've tried setting Main equal to DTSStepExecResult_Success and DTSStepExecResult_Failure as well, but no luck. Also the "Fail Package On Step Failure" checkbox in the Workflow options is not checked.
Any insight would be appreciated.
Thanks,
Rick
Main = DTSTaskExecResult_Success
If there are no records, I set
Main = DTSTaskExecResult_Failure
I've set up the DTS workflow so that if the ActiveX Script task is successful, the package continues to the next step (using the Green "On Success" workflow arrow). If the task fails, the package goes to a different step (using the Red "On Failure" workflow arrow).
The problem I'm having is that when my ActiveX Script fails (as expected), the entire package fails without proceeding through the subsequent workflow steps to handle the failure. I get the error message:
"The task reported failure on execution"
And then when I hit OK, the whole package stops.
I'm not sure why this is occurring. I've tried setting Main equal to DTSStepExecResult_Success and DTSStepExecResult_Failure as well, but no luck. Also the "Fail Package On Step Failure" checkbox in the Workflow options is not checked.
Any insight would be appreciated.
Thanks,
Rick