Skip to main content

Hello, we've been using NPSP and recurring donations, and faced "unable to obtain exclusive access" errors when we import opportunities from feeding donation information by e-mail (mailservice of salesforce) and custome Apex code related to this.

The number of opportunities we've imported is 100-300, and 5-25 of these are failed with this error.

 

From this error message, I assume some of apex jobs or trigger flows which is triggerd by this import might lock the records of Account, Contact or RecurringDonation and this made the fail of import.

 

Does anyone have possible solution for our situation such as changing batch job size or something else?

 

I don't know this is related to our error directoly but whe I checked Apex job history, following two jobs are created and the number of process are more than 100 when we execute import opportunity.

CRLP_RollupQueueable

RD2_QueueableService

#Nonprofit Success Pack #Enhanced Recurring Donations

8 Antworten
  1. 29. März 2023, 01:59

    For everyone commented to this thread, I'd like to share our latest situation

    -Improved the logic of two custom flows which is triggerd by creation of opportunity

    -Changed the number of  "Next Donation Date Match Range"  from 3 to 1

    -> The number of error records are decreased to 2~5 records per day, and no error on yesterday and today, but we're not sure whether these changes are effective or not....

     

    -Raise issue tickets to salesforce support about the logic, whether the rollup batch is triggerd by opportunity creation or not, and we can change the setting of this trigger

    ->Still under communication with support.

0/9000