Home » SQL Server » Resolved: Truncation error on SQL Server Import and Export Wizard

Resolved: Truncation error on SQL Server Import and Export Wizard

You may run into this annoying error while exporting Excel data to SQL Server database:

Executing (Error)
Messages

  • Error 0xc020901c: Data Flow Task 1: There was an error with Source – sites$.Outputs[Excel Source Output].Columns[Notice Comments] on Source – sites$.Outputs[Excel Source Output]. The column status returned was: “Text was truncated or one or more characters had no match in the target code page.”. (SQL Server Import and Export Wizard)
  • Error 0xc020902a: Data Flow Task 1: The “Source – sites$.Outputs[Excel Source Output].Columns[Notice Comments]” failed because truncation occurred, and the truncation row disposition on “Source – sites$.Outputs[Excel Source Output].Columns[Notice Comments]” specifies failure on truncation. A truncation error occurred on the specified object of the specified component. (SQL Server Import and Export Wizard)
  • Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source – sites$ returned error code 0xC020902A. 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)
Truncation error on SQL Server Import and Export Wizard
Truncation error on SQL Server Import and Export Wizard

Although you try different Excel versions, cell formats, export settings, this error won’t go away! It seems that it is a bug. There are some long and complicated workarounds on the net. However, no need to spend too much time for this simple process.

Solution

Instead of exporting Excel data to SQL Server database, firstly export your data to Access database. Then export Access database to SQL Server database. You will surprise how easy it!

Exporting Access data to SQL Server
Exporting Access data to SQL Server
Opeartion is successful!
Opeartion is successful!

Ned Sahin

Blogger for 20 years. Former Microsoft Engineer. Author of six books. I love creating helpful content and sharing with the world. Reach me out for any questions or feedback.

5 thoughts on “Resolved: Truncation error on SQL Server Import and Export Wizard”

Leave a Comment