Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005


Question: I came about this SQL Server Data Import Wizard Error with the Trace Log below, any idea on how to solve it?

- Copying to [dbo].[TableName] (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: 
"The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  
Description: "Violation of PRIMARY KEY constraint 'PK_SomeKey'. Cannot insert duplicate key in object 'dbo.AnotherTable'. The duplicate key value is (26).".
 (SQL Server Import and Export Wizard)
 
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Destination - TableName.Inputs[Destination Input]"
 failed because error code 0xC020907B occurred, and the error row disposition on "Destination - TableName.Inputs[Destination Input]" specifies 
failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this 
with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Destination - 
TableName" (61) failed with error code 0xC0209029 while processing input "Destination Input" (74). The identified component returned an
 error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow 
task to stop running.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)
 
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
 (SQL Server Import and Export Wizard)
 
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Dogs returned 
error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the 
failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages
 posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)


Solution: First of all, there is many errors going on here, one advise I can give you is simple. 

1. Use the "IgnoreOnFailure" drop-down menu when importing or exporting data using SQL Server Import Wizard. Keep in mind that you will need to verify the Count(1) or the count of records from and to the Database/Table you are importing or exporting. Otherwise, if you use the "IgnoreOnFailure" you won't see any errors and this might cause False Postive, thinking all the data has been imported or exported when not.

2. Import or Export the data from the tables one by one, or one at a time. I know this is tidious but it can help you not have many errors which will eventually consume alot of time than needed.

Leave a comment below if these steps helped you solve your problem.

Best of luck!!






© 2024 - ErnesTech - Privacy
E-Commerce Return Policy