The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data.".

  • I have a csv file (FIXED Width) with one cloumn and I read that column as string data type and then covert to Numeric (10,0) using Data Conversion Task.

    But I get this error when I run the pacakge:

    The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data.".

    I tried to redirect the error Rows and found out that, when every the column has "0" as a value its redirecting it. I am not able to understand why is it, not able to read 0 as numeric(10,0). Where it is able to load other values except "0" ( I have seen even -1, -1234 doesnt have any problem)

    I enabled "Retain null values from the source as null values in the data flow" on the Flat file Source editor.

    Anyone out there had experienced this? SSIS is wired.....

  • quillis131 (3/5/2013)


    I have a csv file (FIXED Width)

    Files are either delimited, e.g. a CSV file, or fixed width. Which is it that you are dealing with?

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • weird forum error - this post was meant for a different thread - post removed

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • opc.three (3/6/2013)


    quillis131 (3/5/2013)


    I have a csv file (FIXED Width)

    Files are either delimited, e.g. a CSV file, or fixed width. Which is it that you are dealing with?

    What got my attention was that I initially read it as

    ".. a csv file (FIXED Width) with one clown ... "

    🙂

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Phil Parkin (3/6/2013)


    opc.three (3/6/2013)


    quillis131 (3/5/2013)


    I have a csv file (FIXED Width)

    Files are either delimited, e.g. a CSV file, or fixed width. Which is it that you are dealing with?

    What got my attention was that I initially read it as

    ".. a csv file (FIXED Width) with one clown ... "

    🙂

    Its is CSV file with one Column as Fixed width

  • quillis131 (3/6/2013)


    Phil Parkin (3/6/2013)


    opc.three (3/6/2013)


    quillis131 (3/5/2013)


    I have a csv file (FIXED Width)

    Files are either delimited, e.g. a CSV file, or fixed width. Which is it that you are dealing with?

    What got my attention was that I initially read it as

    ".. a csv file (FIXED Width) with one clown ... "

    🙂

    Its is CSV file with one Column as Fixed width

    No it isn't. It is either CSV or Fixed Width, not both.

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Phil Parkin (3/6/2013)


    quillis131 (3/6/2013)


    Phil Parkin (3/6/2013)


    opc.three (3/6/2013)


    quillis131 (3/5/2013)


    I have a csv file (FIXED Width)

    Files are either delimited, e.g. a CSV file, or fixed width. Which is it that you are dealing with?

    What got my attention was that I initially read it as

    ".. a csv file (FIXED Width) with one clown ... "

    🙂

    Its is CSV file with one Column as Fixed width

    No it isn't. It is either CSV or Fixed Width, not both.

    Its a Fixed Width File

  • Chances are you have your Flat File Connection Manager setup incorrectly. When you go to Preview, does your data line up? If not, make sure you are accounting for the End Of Line characters in your column-definitions.

    If you're stuck zip your SSIS Package and a few lines of your data file to this thread and I'll have a look.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 8 posts - 1 through 7 (of 7 total)

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