-
Notifications
You must be signed in to change notification settings - Fork 238
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
dlrs_RegistrationTrigger: execution of AfterInsert caused by: System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: dlrs__QualifiedParentID__c duplicates value #964
Comments
Ah man this sucks i thought i had got rid of this error once and for all. :-( Can you provide some furthe details on a simple rollup config and repo steps? |
Hi Andy,
Thanks for your help |
Hi Andrew. Apex script unhandled trigger exception by user/organization: 00561000001jKEx/00D61000000cvju dlrs_ContactTrigger: execution of AfterUpdate caused by: dlrs.fflib_QueryFactory.InvalidFieldException: Invalid field 'CreatedDate' for object 'dlrs__LookupRollupSummary__c' Class.dlrs.fflib_QueryFactory.getFieldPath: line 91, column 1 |
I wanted to follow up in case anyone else was experiencing similar issues. My uninstall process wasn't straight forward, it wouldn't uninstall saying I had various triggers still in place. I had already removed all trigger code, but when deleted all the specific rollups that go it further along. |
Unfortunately, It looks like the original error has come back. |
I'm seeing a very similar error when I switched on the new Sharing Settings restriction for guest users. Note that if I shift all rollup jobs to real-time (most are scheduled right now), things work for the guest user. Or if I disable all of them, things work. Or if I disable that guest access security flag, things also work.
|
Any solution for this? We are seeing this issue for Site guest user. |
Is there an solution for this? I am getting the same error: dlrs dlrs_In_Form_TenancyTrigger: execution of AfterUpdate caused by: System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: dlrs__QualifiedParentID__c duplicates value on record with id: a2F4H000001CH6V: [] (dlrs) Trigger.dlrs_In_Form_TenancyTrigger: line 7, column 1 |
I just found from another issue (#956), that if I give all profiles read access to the following four DLRS objects the error disappears:
Hope this helps someone. |
Hi there, Has there been a definitive solution to this error? It happens whenever a Community Cloud guest user tries to donate to our organization. I have multiple DLRS rollup fields that counts and sums up donation records, which is around 4,000. The rollups are scheduled for a nightly calculation. I gave read access to Guest User for all DLRS objects and upgraded to the latest release already. Thanks in advance for any help! Wil |
Checking to see if there has been any solution to this issue. I'm experiencing it as well with community users (logged in). I've given them read permission of the DSLR objects. I've updated to the latest package. Still getting the issue. Disabling one of my rollups fixes the issue. I'm about to delete it and recreate it to see if that does anything. |
When I changed the Calculation Mode to either System or Process Builder, it worked. I would suggest you join the Salesforce DLRS community group, as there are many folks there who have a deeper understanding of this app. That's how I was able to find this solution. Wil |
In the DLRS code: LookupRollupService is declared as "with sharing". It might help if it was declared as "without sharing". |
I am getting this type of error today on version .15 when someone attempts to create a signup from the public site of V4SF. Attempting to remedy with the permissions mentioned above given to the guest user. |
Error above is: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, dlrs_GW_Volunteers_Volunteer_Ha0OTrigger: execution of AfterInsert caused by: System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: dlrs__QualifiedParentID__c duplicates value on record with id: a2q5A0000032wdT: [] (dlrs) Trigger.dlrs_GW_Volunteers_Volunteer_Ha0OTrigger: line 7, column 1: [] |
I believe I gave the guest site user the above mentioned permissions but got the same result. This is blocking our volunteer signups. Now sure how to proceed? Is is a specific rollup? I'm not sure how to get more info to track it down. |
No joy... stuck. |
I'm stuck on the following error: Error Occurred: This error occurred when the flow tried to create records: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: dlrs_TaskTrigger: execution of AfterInsert caused by: System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: dlrs__QualifiedParentID__c duplicates value on record with id: a1k5a000009Iy1n: [] (dlrs) Trigger.dlrs_TaskTrigger: line 7, column 1. The flow that's creating the Task is triggered by a Guest User. Any ideas how we can fix this? |
I was able to avoid the error by moving the DLRS into realtime as suggested above, thank you!! |
Duplicate of #375 |
I get the following error when a site guest user tries to create a regeistration:
dlrs_RegistrationTrigger: execution of AfterInsert caused by: System.DmlException: Upsert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: dlrs__QualifiedParentID__c duplicates value on record with id: a0p4N0000086VlM: [] Class.dlrs.RollupService.updateMasterRollupsTrigger: line 1088, column 1 Class.dlrs.RollupService.handleRollups: line 1001, column 1 Class.dlrs.RollupService.triggerHandler: line 329, column 1 Trigger.dlrs_RegistrationTrigger: line 7, column 1
I've updated to the latest version 2.12. and removed the log records and field as instructed.
There is a scheduled rollup on registrations, when active this error occurs, when inactive it does not.
I tried granting read access on all dlrs objects as a similar issue suggested but that didn't help.
I also tried cloning the rollup. I believe when I did this the first time I tried to add a registration via the site it worked, but the next time it had the error again. (99% sure that's what happened)
Also actual recalculating the rollup doesn't seem to cause an error.
Thanks for any help
The text was updated successfully, but these errors were encountered: