SSIS job issue

  • Koen Verbeeck (5/25/2012)


    OK, pull a data conversion component in the dataflow and convert the 3 columns to DT_STR.

    Be aware that this creates copies for those columns, so you need to adjust the mappings in the OLE DB Destination.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • mANY THNAKS FOR REPLY...

    How to convert the datatype.Can you please let me know......

    can you please let me know whether i have TO change the distination OLE DB cloumns DATA TYPE to ST_STR.

    form the your previous reply i understood that i have to use DATA COnverson tab to convert the data types.

    But i am confisued to which i have to connect i.e from source (flat file) or OLE DB destination to the data conversion transformation.

    [FLAT FILE] ----> [DATA CONVERSION]-------->[OLEDB DESTINATION]

    OR

    [FLAT FILE] -------------->[OLEDB DESTINATION]----> [DATA CONVERSION]

    pLEASE HELP ME......

  • It's the first one, source - conversion - destination.

    It wouldn't really make sense to do the conversion after you've written the data to the destination, wouldn't it?

    Maybe you should look up some tutorials about SSIS to get a grasp of the basics.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • THanks,

    i hvae converted the data types and further ran the pacakage and got below error.

    [Flat File Source [1]] Error: Data conversion failed.

    The data conversion for column "Col002" returned status value 4 and status text "Text was truncated or one or more characters

    had no match in the target code page.".

    The data conversion for column "Col003" returned status value 4 and status text "Text was truncated or one or more characters

    had no match in the target code page.".

    [Flat File Source [1]] Error: An error occurred while processing file "X:\us.txt" on data row 1.

    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.

    The PrimeOutput method on component "Flat File Source" (1) returned error code 0xC0202092.

    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.

    Please help me....

    thanks.

  • The error is quite self-explanatory.

    You are trying to put text that is too long into a column that isn't long enough.

    Either make the column wider or configure SSIS to ignore that error (which results in you losing data).

    Or you selected the wrong codepage in the conversion component.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 5 posts - 16 through 19 (of 19 total)

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