Import error for decimal field in csv file
Posted: Wed Feb 18, 2015 8:50 pm
Hi,
I am trying to read a csv file with 22 fields last of which is a decimal field named BOAT_HASH_KEY (decimal 38,0). The field is set to NULLABLE in output column properties of the sequential file stage. Format of sequential file stage is as below:
Record level
Final Delimeter = end
Field defaults:
Delimeter = comma
NULL field value = ''
Quote = double
When I try to view data I get the following error:
Field "BOAT_HASH_KEY" has import error and no default value; data: {3 0 5 1 2 4 9 0 8 9 0d}, at offset: 77
When I remove this fiield from the csv file (and from the stage metadata as well), I am able to view the data. Its only causing a problem with a decimal field in the end. If there's a varchar field in the end (the last field), I am able to view data.
I am trying to read a csv file with 22 fields last of which is a decimal field named BOAT_HASH_KEY (decimal 38,0). The field is set to NULLABLE in output column properties of the sequential file stage. Format of sequential file stage is as below:
Record level
Final Delimeter = end
Field defaults:
Delimeter = comma
NULL field value = ''
Quote = double
When I try to view data I get the following error:
Field "BOAT_HASH_KEY" has import error and no default value; data: {3 0 5 1 2 4 9 0 8 9 0d}, at offset: 77
When I remove this fiield from the csv file (and from the stage metadata as well), I am able to view the data. Its only causing a problem with a decimal field in the end. If there's a varchar field in the end (the last field), I am able to view data.