I have set up a Precedence Constraint on my SSIS Package. I added a script task and added this script:
Public Sub Main()
Dim fi As System.IO.FileInfo
fi = New System.IO.FileInfo("\\sb25\downloads$\Offsets\SSISDiaries.txt")
If fi.LastWriteTime.Date = DateTime.Today Then
Dts.TaskResult = Dts.Results.Success
Else
Dts.TaskResult = Dts.Results.Failure
End If
Next I added a Precedence Constraint to my SSIS package and configured it as such:
Evaluation operation = Constraint
Value = Success
Now I want to set up something if it's fails. How do I do that?
Public Sub Main()
Dim fi As System.IO.FileInfo
fi = New System.IO.FileInfo("\\sb25\downloads$\Offsets\SSISDiaries.txt")
If fi.LastWriteTime.Date = DateTime.Today Then
Dts.TaskResult = Dts.Results.Success
Else
Dts.TaskResult = Dts.Results.Failure
End If
Next I added a Precedence Constraint to my SSIS package and configured it as such:
Evaluation operation = Constraint
Value = Success
Now I want to set up something if it's fails. How do I do that?