SQL Server Import Error

  • Hi Experts,

    Need your help in fixing this. I am trying to import data from .XLS file to a table using import and export wizard. I am getting the below error.

    - Executing (Error)

    Messages

    Error 0xc020901c: Data Flow Task 1: There was an error with output column "LocalLanguageLabel" (18) on output "Excel Source Output" (9). 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 "output column "LocalLanguageLabel" (18)" failed because truncation occurred, and the truncation row disposition on "output column "LocalLanguageLabel" (18)" 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 component "Source - Sheet1$" (1) 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)

    I dont want to edit registry/Use Distributed queries since i cannot do that on production.

    Thanks in Advance.

    Regards,

    Vijay

  • The error relates to truncation so your trying to insert CHAR(100) into CHAR(50) for example, find the maximum size of the data in the column detailed and then increase the size of this field in the DB.

    Another one will be that the source is set to the default size of 50 but the field is actually 25 and needs to be changed in the connection manager or add in a data conversion task.

  • Error 0xc020901c: Data Flow Task 1: There was an error with output column "LocalLanguageLabel" (18) on output "Excel Source Output" (9). 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)

    This looks like the output column out of the Excel data source (in SSIS) is not configured with the correct text size (or character encoding).

    So what you need to do is go back to the first stage of your Import/Export wizard configuration, and edit the output data-type length/type for the LocalLanguageLabel column.

    I think the wizard takes the first 100 items as a sample to build the data-types, which means there is alot of margin for error.

    />L

    -----------------
    ... Then again, I could be totally wrong! Check the answer.
    Check out posting guidelines here for faster more precise answers[/url].

    I believe in Codd
    ... and Thinknook is my Chamber of Understanding

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply