When I use the Mass Transfer (Account) tool I am encountering the error message in the subject line regarding the following Trigger. Is this a issue where this trigger is not bulkified and is causing the timeout? Note: When I transfer 150 instead of all 250 records at once the Transfer tool completes the transaction.
/* Auto Generated and Deployed by the Declarative Lookup Rollup Summaries Tool package (dlrs)
**/
trigger dlrs_AccountTrigger on Account
(before delete, before insert, before update, after delete, after insert, after undelete, after update)
{
private Boolean deactivateTrigsForBatch = (!Test.isRunningTest())?App_Settings__c.getInstance('ACCOUNT_Deactivate Triggers for Batch').isActive__c:FALSE;
if(!deactivateTrigsForBatch) {
try {
dlrs.RollupService.triggerHandler();
} catch (Exception e) {
//do nothing
}
}
}
LimitException
is encountered does not mean it is the cause. The trigger you have included is generated by a managed package. You should first try to optimize the rest of yourAccount
trigger logic before focusing on dlrs. You may also wish to reduce the number of summaries you calculate for this object. – Adrian Larson♦ Dec 1 '16 at 2:00