"java.lang.NullPointerException" showing while transforming records from staging table to target table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 10:41 PM
Hi Developers,
I am facing an issue in transform map and the issue is like while run transfer , error is showing as "java.lang.NullPointerException" .
For this i checked below
1> checked the mappings of source table and target table and the mapping is correct
2> in community i found that if date type of source table "basic data/time" then this error is showing but in staging table the date type is mentioned not "Basic data/time".
3> To check without date field and scripts , i removed these fields from mapping table and tried to run the transform map but still this error is showing , so could not understand what will be the issue here.
Need suggestion from you dear developers.
In transform history , shwoing as below
Regards,
Manmath

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 10:51 PM
Hi,
Null Pointer Exception occur when type of variable is different than already defined. So,kindly check type of variable that you want transform.
Please find below link will definitely help you,
If my answer is helpful mark it as helpful and correct
Regards,
Pratiksha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 10:55 PM
Hi Manmath,
Data type of all fields in source table would be string by default
so when you removed the date or date/time field maps still the error is coming; so it means issue is with some other fields
can you share screenshot of the field maps; which field you have set as coalesce?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2019 11:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2019 03:03 AM
Hi Ankur,
Did you get anything from there?
Regards,
Manmath