Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging lead causes Permission to create dlrs__LookupRollupSummary__c error #345

Closed
chenchenick opened this issue Jun 21, 2016 · 5 comments

Comments

@chenchenick
Copy link

Hi there,
I create 2 LookupRollupSummaries to count lead's activity and get lead's next activity.
They all works well. But my users met this error when they merging leads.

Apex trigger dlrs_LeadTrigger caused an unexpected exception, contact your administrator: dlrs_LeadTrigger: execution of AfterDelete caused by: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, dlrs.RollupSummariesTrigger: execution of AfterInsert caused by: dlrs.fflib_SObjectDomain.DomainException: Permission to **create** an dlrs__LookupRollupSummary__c denied. Class.dlrs.fflib_SObjectDomain.handleAfterInsert: line 174, column 1 Class.dlrs.fflib_SObjectDomain: line 316, column 1 Class.dlrs.fflib_SObjectDomain.triggerHandler: line 271, column 1 Trigger.dlrs.RollupSummariesTrigger: line 30, column 1: []: Class.dlrs.RollupService.updateMasterRollupsTrigger: line 935, column 1

Granting them the default permission set Lookup Rollup Summaries - Process Rollups did not help.
So I cloned it and add create permission to dlrs__LookupRollupSummary__c, and it worked.

My question is, is this correct way to make it work? Why merging needs extra permission?

Thank you!

@afawcett
Copy link
Collaborator

This is for sure not supposed to be the way it works. Thanks for raising, i will investigate.

@chenchenick
Copy link
Author

Thanks for the response, I also add screenshot of my customizations here just in case.

20160621132459
20160621132422

here.

@afawcett afawcett added bug and removed discussion labels Jul 2, 2016
@afawcett
Copy link
Collaborator

afawcett commented Jul 2, 2016

Ok its just occurred to me what might be causing this. Do you have any using Calculation Mode Scheduled?

@chenchenick
Copy link
Author

No, we are not using that.

@afawcett
Copy link
Collaborator

Fixed in v2.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants