Article ID: 67611
Article Type: Troubleshooting
Last Modified:
Performing a Salesforce restore operation on an object record that has a duplicate field value produces an error.
A restore operation with a duplicate value on an object record does not run and the following error appears:
Custom_object__c record 0033M00000ERamGQAT was not updated. Error message: DUPLICATE_VALUE:duplicate value found: ID__Field__s duplicates value on record with id: 0033M00000OY8DA:--
A restore operation produces an error on an object record because there is a duplicate field value for a field that requires a unique field value.
In Salesforce on the object record, change the duplicate field value to a unique field value, and then save the change.
If you cannot change the field value in Salesforce, go to Setup > Duplicate Rules, and then disable the duplicate rule correlating to the field that produces the error.