![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a DTS that does a Data transform, copy columns from text to table, and I would like to keeps track of the number of records that failed and store it in a global variable. I then call the global variable from another dts packags. I want to keep track of num of records that are succesful and the num of records that failed in the data transformation. Any ideas how I can do this. |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thanks Darren, I have the name of my tranform task "DTSStep_DTSDataPumpTask_1" But it comes up with "DTS task 'DTSStep_DTSDataPumpTask_1' was not found. I see in the below exception report it calls it a step: Am I not calling the correct thing? Or could I have my 'Transform Data Task' set up incorrectly? The transform data task step runs fine. Thanks for the help! DATA TRANSFORMATION SERVICES: Data Pump Exception Log Package Name: TransferFromText Package Description: (null) Package ID: {27D8D920-E52C-493B-A3CD-C6071881EA65} Package Version: {0895831F-C0DC-4827-99A1-BFCC0CF0DD72} Step Name: DTSStep_DTSDataPumpTask_1 Execution Started: 12/11/2003 8:43:36 AM Execution Completed: 12/11/2003 8:43:36 AM |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Darren, Here is my code below DTSGlobalVariables("GoodRows").Value = oDataPump.RowsComplete - oDataPump.RowsComplete msgbox DTSGlobalVariables("GoodRows").Value DTSGlobalVariables("BadRows").Value = oDataPump.RowsComplete - oDataPump.RowsInError msgbox DTSGlobalVariables("BadRows").Value DTSGlobalVariables("TotalRows").Value = oDataPump.RowsComplete msgbox DTSGlobalVariables("TotalRows").Value The GoodRows come up 0, then BadRows comes up 852, and TotalRows comes up 852. But there are 852 rows that got transferred in the database. So it is like opposite. Any ideas. Thanks, |
#8
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |