Hi,

I use an activex to update properties task with global varaible. But when I want to initialise an object task (DataPumpTask), I have this error : Task 'DTSStep_DTSDataPumpTask_4' was not found

My VBScript :

Function Main()

Dim oPkg, oDataPump
Dim g_LogPath
Dim LogFileName

g_LogPath = DTSGlobalVariables("LogPath").value
MsgBox(g_LogPath)

Set oPkg = DTSGlobalVariables.Parent

msgbox(cstr(oPkg.name))
msgbox(cstr(oPkg.LogFileName))

Set oDataPump = oPkg.Tasks("DTSStep_DTSDataPumpTask_4").CustomTask

LogFileName = oDataPump.ExceptionFileName.Value
MsgBox(LogFileName)

Set oPkg = Nothing
Set oDataPump = Nothing

Main = DTSTaskExecResult_Success

End Function

Thanks a lot