Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error convert String to Date

Hi All,

 

I want to convert string to date, but error is shown:

 

Exception in component tMap_4 (testbrna)
java.lang.NullPointerException
at java.text.SimpleDateFormat.parse(Unknown Source)
at java.text.DateFormat.parse(Unknown Source)
at routines.TalendDate.parseDate(TalendDate.java:928)
at routines.TalendDate.parseDate(TalendDate.java:886)
at test.testbrna_0_1.testbrna.tFileInputExcel_4Process(testbrna.java:1620)

 

Kindly help. Thank you in advance

 

0683p000009MaSw.jpg0683p000009MaS9.jpg

Labels (2)
2 Replies
jeoste
Creator II
Creator II

Hello ! The NPE (Nullpointer exception) is telling you that your current output data is null. Which means : TalendDate.parseDate("M/d/y", row4.Date) is null. Try to catch the error output like this

0683p000009MaT6.png

You will see which lines is empty. Then you have to debug the input of your flow to fix the null date Smiley Happy

David_Beaty
Specialist
Specialist

Hi,

 

You should also consider using the TalendDate.isDate() method in the tMap or a tSchemaComplianceCheck component  prior to the tMap to filter out rows that don't match the format you're expecting.