Posted: 3/3/2010
I have an destaintion script. All it is supposed to do is: update a table.
here is error message:
Error at DF_Update_Staff_Supervsor_Id [DTS.Pipeline]: No object exists with the ID 171.
Error at DF_Update_Staff_Supervsor_Id [Script Component [43]]: System.Runtime.InteropServices.COMException (0xC0047072): Exception from HRESULT: 0xC0047072 at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.HandleUserException(Exception e) at Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.AcquireConnections(Object transaction) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper90 wrapper, Object transaction)Error at DF_Update_Staff_Supervsor_Id [DTS.Pipeline]: component "Script Component" (43) failed validation and returned error code 0xC0047072.
Error at DF_Update_Staff_Supervsor_Id [DTS.Pipeline]: One or more component failed validation.
Error at DF_Update_Staff_Supervsor_Id: There were errors during task validation.
(Microsoft.DataTransformationServices.VsIntegration)
------------------------------Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, DataWarehouseProjectManager manager, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
here is script code:
Imports
System
System.Data
System.Data.OleDb
System.Data.SqlClient
System.Math
Microsoft.SqlServer.Dts.Pipeline.Wrapper
Microsoft.SqlServer.Dts.Runtime.Wrapper
Microsoft.SqlServer.Dts.Runtime
Public
ScriptMain
UserComponent
IDTSConnectionManager90
OleDbConnection
OleDbCommand
OleDbParameter
'Dim sqlConn As SqlConnection
'Dim sqlCmd As SqlCommand
'Dim sqlParam As SqlParameter
Input0Buffer)
oldbcmd.Parameters(
.Parameters(
).Value = Row.EmployeeNumber.Parameters(
).Value = Row.ManagerID.ExecuteNonQuery()
.ExecuteNonQuery()
With
Sub
)connMgr =
connMgr =
.Connections.FacilitiesActivitiesoldbConn =
oldbConn =
), OleDbConnection)
PreExecute()oldbcmd =
oldbcmd =
, oldbConn)oldbParam =
oldbParam =
, OleDbType.VarChar, 10)oldbcmd.Parameters.Add(oldbParam)oldbParam =
oldbcmd.Parameters.Add(oldbParam)
, OleDbType.VarChar, 10)oldbcmd.Parameters.Add(oldbParam)
The 171 is the lineage id of one of the columns. One of the columns may have changed during the building process. Try remapping the columns in the input columns.
But why are you using a script task? Why not use the OLEDB command transform?