Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
. when i am trying to read THE DATE column it is giving me error
any help on it would be much appreciated
Attached is the screenshot of job
tarting job DebugTime at 14:46 30/10/2018. [statistics] connecting to socket on port 3446 [statistics] connected Exception in component tMap_1 (DebugTime) java.lang.RuntimeException: java.text.ParseException: Unparseable date: "0030c00002XGcpHAAT" at routines.TalendDate.parseDate(TalendDate.java:898) at routines.TalendDate.parseDate(TalendDate.java:842) at frog_demo.debugtime_0_1.DebugTime.tFileInputExcel_1Process(DebugTime.java:978) at frog_demo.debugtime_0_1.DebugTime.runJobInTOS(DebugTime.java:1437) at frog_demo.debugtime_0_1.DebugTime.main(DebugTime.java:1286) Caused by: java.text.ParseException: Unparseable date: "0030c00002XGcpHAAT" at java.text.DateFormat.parse(Unknown Source) at routines.TalendDate.parseDate(TalendDate.java:884) ... 4 more [statistics] disconnected Job DebugTime ended at 14:46 30/10/2018. [exit code=1]
Also, attaching exact excel sheet with date column that i want to read here
Hello,
What is the source date format? Do youneed to convert date to string?
Best regards
Sabrina
I see that your source is string and the target is date. You need to use the following expression to convert string to date. Also make sure that you filter out any nulls or put in a check that if null then ignore else use the below expression
TalendDate.parseDate("yyyy-MM-dd",Var.var1)
Your date format is MM/DD/YYYY HH:ss
It seems that there is some issue with the time format. Do check your source.
Starting job DebugTime at 19:39 01/11/2018. [statistics] connecting to socket on port 3700 [statistics] connected java.lang.NumberFormatException: For input string: "003a" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at routines.system.FastDateParser$DateParser.parse(FastDateParser.java:127) at java.text.DateFormat.parse(Unknown Source) at routines.TalendDate.parseDate(TalendDate.java:884) at routines.TalendDate.parseDate(TalendDate.java:842) at frog_demo.debugtime_0_1.DebugTime.tFileInputExcel_1Process(DebugTime.java:977) at frog_demo.debugtime_0_1.DebugTime.runJobInTOS(DebugTime.java:1436) at frog_demo.debugtime_0_1.DebugTime.main(DebugTime.java:1285) Exception in component tMap_1 (DebugTime) java.lang.RuntimeException: java.text.ParseException: Unparseable date: "003a000001QLYuTAAX" at routines.TalendDate.parseDate(TalendDate.java:898) at routines.TalendDate.parseDate(TalendDate.java:842) at frog_demo.debugtime_0_1.DebugTime.tFileInputExcel_1Process(DebugTime.java:977) at frog_demo.debugtime_0_1.DebugTime.runJobInTOS(DebugTime.java:1436) at frog_demo.debugtime_0_1.DebugTime.main(DebugTime.java:1285) Caused by: java.text.ParseException: Unparseable date: "003a000001QLYuTAAX" at java.text.DateFormat.parse(Unknown Source) at routines.TalendDate.parseDate(TalendDate.java:884) ... 4 more [statistics] disconnected Job DebugTime ended at 19:39 01/11/2018. [exit code=1]