Problem:
I got below errors encountered when importing data into table Table1 though SSIS package.
• [OLE_DES_Table1 [16]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21. An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.".
• [OLE_DES_Table1 [16]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "OLE DB Destination Input" (29)" failed because error code 0xC020907B occurred, and the error row disposition on "input "OLE DB Destination Input" (29)" 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.
• Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The Process Input method on component "OLE_DES_Table1" (16) failed with error code 0xC0209029. The identified component returned an error from the Process Input 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.
• Error: SSIS Error Code DTS_E_THREADFAILED. Thread "WorkThread0" has exited with error code 0xC0209029. There may be error messages posted before this with more information on why the thread has exited.
Reason:
This was happened because of violating the Unique Clustered Constraint. The table Table1 has one primary key clustered and one unique clustered key. The primary key was getting populated from Identity column. The other two columns are getting populated from data source. The data source has duplicate rows that violating the unique clustered key constraint.
Solution: There may be lot reasons for getting the above errors. But in my case the cause was above mentioned reason. If your case is similar you know the reason, and you know what to do.
No comments:
Post a Comment