function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AsokAsok 

System.DmlException: Insert failed.first error: DUPLICATE_VALUE, duplicate value found

Dear All, 

 

I am trying to insert an account share while updating the user list. 

 

I am getting the below mentioned error. Kindly help me.

 

System.DmlException: Insert failed.first error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id:  <unknown>: []      

 

At, times this error as well...


System.DmlException: Insert failed. First exception on row 741; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this    record: []

rohitsfdcrohitsfdc

please post ur code