![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In my "Data Task" Under Workflow properties, under options I have the name "DTSStep_DTSDataPumpTask_1" Off of the connection that it transfers the data to I have "on success" workflow to an active x. In the active x I have the below function: Function Main() Dim sMsg Dim oTask Dim oDataPump Set oTask = DTSGlobalVariables.Parent.Tasks("DTSStep_DTSDataPu mpTask_1") Set oDataPump = oTask.CustomTask DTSGlobalVariable("GoodRows").Value = oDataPump.RowsComplete - oDataPump.RowsInError DTSGlobalVariable("BadRows").Value = oDataPump.RowsComplete - oDataPump.RowsInError DTSGlobalVariable("TotalRows").Value = oDataPump.RowsComplete Set oDataPump = Nothing Set oTask = Nothing Set fso = CreateObject("Scripting.FileSystemObject") end function when I run it I get "Task 'DTSStep_DTSDataPumpTask_1' was not found. Do I need to reference by a different name, I tried the description. Or am I suppose to reference something different? Thanks for the help |
#3
| |||
| |||
|
|
In my "Data Task" Under Workflow properties, under options I have the name "DTSStep_DTSDataPumpTask_1" Off of the connection that it transfers the data to I have "on success" workflow to an active x. In the active x I have the below function: Function Main() Dim sMsg Dim oTask Dim oDataPump Set oTask = DTSGlobalVariables.Parent.Tasks("DTSStep_DTSDataPu mpTask_1") |
![]() |
| Thread Tools | |
| Display Modes | |
| |