Skip to main content

The NPSP TDTM Opportunity trigger is not allowing me to insert data into the opportunity object into Salesforce. The error I receive is:

"npsp.TDTM_Opportunity: execution of BeforeInsert

caused by: System.NullPointerException: Attempt to de-reference a null object

Class.npsp.OPP_OpportunityContactRoles_TDTM.setOpportunityAccountField: line 137, column 1

Class.npsp.OPP_OpportunityContactRoles_TDTM.run: line 61, column 1

Class.npsp.TDTM_TriggerHandler.runClass: line 193, column 1

Class.npsp.TDTM_TriggerHandler.run: line 113, column 1

Class.npsp.TDTM_Config_API.run: line 92, column 1

Trigger.npsp.TDTM_Opportunity: line 33, column 1"

5 answers
  1. Mar 19, 2020, 6:09 PM

    @Mike McGibbony​ I did read about a case that was resolved by lowering the batch size to 1, which shouldn't be an issue for your size. It's likely due to either a bug in the Data Loader (that was the issue indicated on the case), or because there are so many Opty's attempting to relate to the same record, though I'd expect a row-lock or similar in that case. Can you try with 1?

0/9000