![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi... I've sent this question before, but it's still not very clear. I have a package with many tasks and I am executing a loop in an ActiveX task. Inside this task I execute a task according to a global variable and then I decide whether to terminate the package or not. The problem is, when I make the test and decide to terminate the package I use the following code: If (DTSGlobalVariables("var1").Value = 0) and (DTSGlobalVariables("var2").Value = 0) Then Main = DTSTaskExecResult_Failure '(1) Else Main = DTSTaskExecResult_Success '(2) End If But I didn't want to terminate the package with error (1), and if I choose the (2) it follows for the next task, while it should have been already finished. I hope it's clear... Thanks... Eduardo |
#3
| |||
| |||
|
|
Hi... I've sent this question before, but it's still not very clear. I have a package with many tasks and I am executing a loop in an ActiveX task. Inside this task I execute a task according to a global variable and then I decide whether to terminate the package or not. The problem is, when I make the test and decide to terminate the package I use the following code: If (DTSGlobalVariables("var1").Value = 0) and (DTSGlobalVariables("var2").Value = 0) Then Main = DTSTaskExecResult_Failure '(1) Else Main = DTSTaskExecResult_Success '(2) End If But I didn't want to terminate the package with error (1), and if I choose the (2) it follows for the next task, while it should have been already finished. I hope it's clear... Thanks... Eduardo You can use workflow script to gracefully terminate a package, or rather |
![]() |
| Thread Tools | |
| Display Modes | |
| |