![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Please , I need help. I need a DTS where it is necessary to be able to determine if a file exists and if the file does not exist that sends to a mail but nonprofit that before a fault (DTSTaskExecResult_Failure) follows the fault way until shooting the mail. Task 1 ----ON FAILURE-----> Send Mail Task ----ON SUCCESS-----> Task 2 The code TASK1 is : Function Main() Dim oFSO, sFileName sFilename = "c:\temp\temp.00" Set oFSO = CreateObject("Scripting.FileSystemObject") If oFSO.FileExists(sFilename) Then Main = DTSTaskExecResult_Success else Main = DTSTaskExecResult_Failure end if Set oFSO = Nothing End Function but The error is : Step Error Source: Microsoft Data Transformation Services (DTS) Package Step Error Description:The task reported failure on execution. Step Error code: 8004043B Step Error Help File:sqldts80.hlp Step Error Help Context ID:1100 Regards DNaveran |
![]() |
| Thread Tools | |
| Display Modes | |
| |