SQL Import Error

Nischal Badarinath Kashyap 1 Reputation point
2021-03-24T01:32:55.713+00:00

Hi all, Whe i try to import data from my ms excel file into my database table, I'm receiving the following error : Error 0xc02020c5: Data Flow Task 1: Data conversion failed while converting column "F3" (21) to column "F3" (59). The conversion returned status value 4 and status text "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 "Data Conversion 0 - 0.Outputs[Data Conversion Output].Columns[F3]" failed because truncation occurred, and the truncation row disposition on "Data Conversion 0 - 0.Outputs[Data Conversion Output].Columns[F3]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
 (SQL Server Import and Export Wizard)
 Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Data Conversion 0 - 0" (43) failed with error code 0xC020902A while processing input "Data Conversion Input" (44). 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) It has to be noted that the error is appearing at column F3. In my excel file, F3 is the column that contains text whose size can vary and I have given the respective attribute in my table as "text". There should not be any error in transferring this data. But yet I see the above message. This is happening to many of my other tables. Can I anyone provide me a lead on this? Thank You in Advance. Regards Nischal

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,481 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 40,156 Reputation points
    2021-03-24T07:20:06.517+00:00

    Text was truncated or one or more characters had no match in the target code page

    That mean either

    • You try to import larger data then it fit's into the table column; means e.g. column is defined as varchar(50) and the data contains more then 50 chars
    • You try to import Unicode data into a ASCII column

    So check table definition and source data if they match by definition & size.


  2. AmeliaGu-MSFT 13,961 Reputation points Microsoft Vendor
    2021-03-24T08:16:41.803+00:00

    Hi NischalBadarinathKashyap-8458,
    Was the SQL Server table you want to import data a new table?
    If it is a new table, you can increase the size in the “select source tables and views” page -> click Edit Mapping, then increase size of column.
    81103-01.jpg

    If it is not, you can try to increase size of the column in the table.

    Best Regards,
    Amelia