Hi,
I am trying to load .txt file to another .txt file. It's just a plain load. But I am getting following error.
connecting to socket on port 3406
connected
Exception in component tFileInputDelimited_1
java.lang.NumberFormatException: For input string: " 1"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at routines.system.ParserUtils.parseTo_Integer(ParserUtils.java:73)
at test_java.curr_demo.curr_demo.tFileInputDelimited_1Process(curr_demo.java:429)
at test_java.curr_demo.curr_demo.runJob(curr_demo.java:1075)
at test_java.curr_demo.curr_demo.main(curr_demo.java:1014)
disconnected
Hi
Theres are some blank space in your file: | 1| 7|, so if your datatype is "integer", it will throw exception. You can set the datatype as string in your schema and your job will run fine.
Best regards
shong
Thanks Shong, it is working.
But in my output table (Database) I want these columns as integers only. In tMap, left side if I take it as "string" for columns and right side if I take it as "integer" for columns then it is showing warning.
Actually, once the data is red we trim all the records before loading data to the table. This is part of our transformations.
Is there a way to read these records without any space while reading input data.
Thanks again...