![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a job that has a number of steps of which the last two are to be executed only if certain conditions are met. In the workflow properties/activex script for these last two steps I have the following: IF DTSGlobalVariables("SkipEndTasks").Value then Main = DTSStepScriptResult_DontExecuteTask else Main=DTSStepScriptResult_ExecuteTask end if This works to a degree because the two steps aren't executed which I want however when the package is executed through vb I step throught the steps to determine if there's an error, i.e. DTSStepExecResult_Failure. Unfortunately when the last two steps are not run due to the above code the step returns failure. I don't know why it returns failure and am wondering what I'm doing wrong. Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |