Page 1 of 1

Error in Reading ASCII file

Posted: Fri May 29, 2015 11:27 am
by vibwipro
Hello,

I am getting error in reading .csv file through a schema file.

Schema file is :-

record{record_delim_string='\r\n', delim=',', final_delim=end, quote=double}
(
BRANCH_ID:String[10];
CLIENT_ID:String[10];
NOTES:String[200];
PIN_DEVICE:String[3];
CP_ROUTE_NO:String[4];
)


Error :-

Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 0.
Copy_of_SYS,0: Import unsuccessful at record 0.
Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 1.
Copy_of_SYS,0: Import unsuccessful at record 1.
Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 2.

so on.

Can any one plz help m eon this.

Posted: Fri May 29, 2015 11:35 am
by Mike
Your schema file does not describe your data file contents. You've defined all fixed-width strings. Are you sure you want to do that for a delimited file?

Mike

Posted: Fri May 29, 2015 12:50 pm
by vibwipro
Thx Mike,

Could you please make changes as past back schema file.

Posted: Fri May 29, 2015 1:26 pm
by chulett
Or here's a crazy thought - you could do it. Add "max=" before the size.

Posted: Fri May 29, 2015 4:04 pm
by ray.wurlod
You might also like to check whether the file genuinely has DOS-style line terminators, as mentioned in the schema file.