function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhik Sarkar 4Abhik Sarkar 4 

Error message while uploading event registrant using data loader

Today while using insert functionality on Apex data loader to add event registrants list on Salesforce we received an error message "populateAttendee: execution of BeforeInsertcaused by: System.NullPointerException: Attempt to de-reference a null objectTrigger.populateAttendee: line 17, column 1" and were unable to upload.

Does someone has faced a similar issue or can shed some light on this error message?

Thanks,
Abhik
IshwarIshwar
Something is wrong with the code you have written in trigger 'populateAttendee'.
You have to upload code and some sample data here, so that people can look into it and try to help u.
Regards
Abhik Sarkar 4Abhik Sarkar 4
Hey Ishwar,

This is the dataset screenshot that I have got from the error log file after trying to upload the event registrant using data loader.

User-added image
IshwarIshwar
To get the exact root cause we need to check the code.
I can guess that some of these Event and Contact Ids are not present in you org OR the user who is uploading this data may not have access to these Event or Contact records.