Error Reading Char Field from Sequential File
Posted: Tue Oct 03, 2006 11:43 pm
Hi All
I have to read a sequential file(records r comma seperated), apply transformation and insert data into dataset.I am specifying Metadata for col1 as char(6) and col2 as varchar(30).Input Data is as follows(First Line is Col. name)
statecode,statefullnametext
ACT,Australian Capital Territory
NSW,New South Wales
NT,Northern Territory
but while reading the File i am getting following Error
<Sequential_File_23,0> Field "statecode" delimiter not seen, at offset: 6
<Sequential_File_23,0> Import warning at record 0.
<Sequential_File_23,0> Import unsuccessful at record 0.
<Sequential_File_23,0> Field "statecode" delimiter not seen, at offset: 6
Missing record delimiter "\n", saw EOF instead
But when i use First Col. DataType as varchar(6) job is working fine..
Please suggest me the solution to use char datatype and why it is so.......
Thanks
![Smile :)](./images/smilies/icon_smile.gif)
I have to read a sequential file(records r comma seperated), apply transformation and insert data into dataset.I am specifying Metadata for col1 as char(6) and col2 as varchar(30).Input Data is as follows(First Line is Col. name)
statecode,statefullnametext
ACT,Australian Capital Territory
NSW,New South Wales
NT,Northern Territory
but while reading the File i am getting following Error
<Sequential_File_23,0> Field "statecode" delimiter not seen, at offset: 6
<Sequential_File_23,0> Import warning at record 0.
<Sequential_File_23,0> Import unsuccessful at record 0.
<Sequential_File_23,0> Field "statecode" delimiter not seen, at offset: 6
Missing record delimiter "\n", saw EOF instead
But when i use First Col. DataType as varchar(6) job is working fine..
Please suggest me the solution to use char datatype and why it is so.......
Thanks