![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Using SS2000 SP3a. I have a step in a package where I check for the existence of a file. If the file is not there, I want the package to stop but it doesn't. I've set "fail package on first error in package properties. The code in the step is this: Function Main() Set fso=createobject("scripting.filesystemobject") If fso.fileexists("G:\Import\mission_weekly.txt") then Main = DTSTaskExecResult_Success Else Main = DTSTaskExecResult_Failure End If Set fso = nothing End Function What am I doing wrong? Thanks, -- Dan D. |
#3
| |||
| |||
|
|
I can't see anything wrong....i made some examples with ActiveX task and the package stops. Try, if it's possible in your package, using "On Success" Workflow Francesco Anti "Dan D." <DanD (AT) discussions (DOT) microsoft.com> wrote in message news:7027DFE9-240D-4515-A67C-F231D9191939 (AT) microsoft (DOT) com... Using SS2000 SP3a. I have a step in a package where I check for the existence of a file. If the file is not there, I want the package to stop but it doesn't. I've set "fail package on first error in package properties. The code in the step is this: Function Main() Set fso=createobject("scripting.filesystemobject") If fso.fileexists("G:\Import\mission_weekly.txt") then Main = DTSTaskExecResult_Success Else Main = DTSTaskExecResult_Failure End If Set fso = nothing End Function What am I doing wrong? Thanks, -- Dan D. |
![]() |
| Thread Tools | |
| Display Modes | |
| |