|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 10:46 AM
Points: 156,
Visits: 512
|
|
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.....
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:44 PM
Points: 6,826,
Visits: 11,948
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:44 PM
Points: 6,826,
Visits: 11,948
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:53 PM
Points: 4,315,
Visits: 9,647
|
|
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 ... "
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 10:46 AM
Points: 156,
Visits: 512
|
|
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
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:53 PM
Points: 4,315,
Visits: 9,647
|
|
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.
____________________________________________________________________________________________
Help us to help you. For better, quicker and more focused answers to your questions, consider following the advice in this link:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
If you are asking for help and your post does not contain a question, you should expect responses which do not contain any answers. Put a question mark in there somewhere - it's not rocket science.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 10:46 AM
Points: 156,
Visits: 512
|
|
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
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 8:44 PM
Points: 6,826,
Visits: 11,948
|
|
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
Believe you can and you're halfway there. --Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
|
|
|
|