Article #000001127
Summary
Users are unable to enter time when on a matter or when through the batch time entry form.
Question
Why am I receiving the error below?
advpm.MatterTrigger: execution of AfterUpdate caused by: System.ListException: Row with duplicate Name at index: 17 (advpm)
-OR-
An error occurred while trying to update the record. Please try again.
Advpm.TimeEntries: execution of AfterInsert caused by: DmlException. Update failed. First exception on row 0 with id a083p00001CHvdsAAD; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, advpm.MatterTrigger: execution of AfterUpdate caused by: System.ListException: Row with duplicate Name at index: 17 (advpm): [] (advpm)
Resolution
Somehow multiple users were interacting with the Participation Map simultaneously and toggled the filters right at the same time. Normally, this is handled well within our app, and simultaneous use of our component does not cause this issue, but a very rare instance where Salesforce also could not lock down the data for an update allows data to be saved with the same Name in a system custom setting governed by the AdvoLogix app. Thus, the error started occurring.
- Go to Setup >> Quick Find: Custom Settings >> AdvoLogix Global Options (List)
- Click on Manage.
- Edit one of the records that have a duplicate name and change the Name field value to something unique in the list. The Name just needs to be unique throughout the list of records (see screenshot below).