![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to use ActiveX to skip some steps if a file is not present. The code works fine in DTS Designer, but fails when I run it as a scheduled job. I get this error from the job history. DTSRun OnStart: DTSStep_DTSActiveScriptTask_3 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_3 DTSRun: Package execution complete. Process Exit Code 1. The step failed. Code snippet from "DTSStep_DTSActiveScriptTask_3" If x = y then Do stuff Else oPkg.Steps("DTSStep_DTSDataPumpTask_3").DisableSte p =True oPkg.Steps("DTSStep_DTSExecuteSQLTask_15").Executi onStatus = DTSStepExecStat_Completed Can anyone offer some advice? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I dont think it is security. I run the job as sa and it runs fine. I am trying to skip about 5 steps (Active X and SQL) if a file is not present. This is the line of code that fails to run as a scheduled job. oPkg.Steps("DTSStep_DTSExecuteSQLTask_15").Executi onStatus = DTSStepExecStat_Completed I have no issues when I try and disable my datapump. The problem is when I try and jump forward a few steps by setting SQLTask_15 to completed. It works in DTS Designer. Any thoughts? |
#5
| |||
| |||
|
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |