Skip to main content

I am using Data Loader to import approximately 1700 Donation records.  We are using NPSP.  1200 records imported successfully, but the remaining 500 are throwing an error.  

Error code is: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY.  

Error message:npsp.TDTM_Opportunity: execution of BeforeInsert caused by System.NullPointerException: Attempt to de-reference a null object. 

 

Given the trigger is part of a managed package, I don't know how to begin to figure out the error. 

 

 Interestingly, I cut the file size to 4 and that batch uploaded.  Tried again with the next batch of 4 and they did not.   

14 answers
  1. Aug 6, 2022, 7:30 PM

    Hello,

    I think the Bulk API setting wouldn't have been helping here as this causes it to run parallel batches which increase the likelihood of this type of error.

    I would suggest running the files through with a smaller batch size eg. 10 records as I'd expect to see more successes that way but the processing would also take longer so it's a trade off.

    I can't really comment on the NPSP Triggers as without seeing the code or running a debug to confirm there isn't setting anything else off it's hard to assess if it's the code or the resulting automation or code that it's firing that is the cause.

0/9000