Problem:
I restored a merge, but it looks like the records haven't been fully restored.
Answer:
To start with, please check that:
- All related objects have proper permissions for restoring
- Custom fields are accessible to the restore process
- No validation rules are preventing the restoration
If the abovementioned points are configured correctly, then either one or more related object is not available for restoring, or a Salesforce limit was reached.
Not all related records can be restored when undoing a merge, either because of the type of Object, or because of Salesforce limitations (record and query processing limits).
- Generally speaking, Plauti Restore can restore related records of the following Objects when restoring a merge:
- Standard Salesforce objects (Contacts, Opportunities, Cases, Tasks, etc.)
- Custom objects with lookup, hierarchy or master-detail relationships
- Objects that are queryable and updateable
- Objects whose relationships can be reparented
- Related records that cannot be restored to their original record are for example:
- Share objects (e.g. AccountShare, ContactShare)
- History objects (e.g. AccountHistory)
- Tag objects (e.g. AccountTag)
- Feed items, comments, and other Chatter items
- System objects that cannot be reparented
- Attachment-related objects
These types of objects cannot be selected for Related Object Tracking in the Object Configuration.
- Sometimes a large number of related records needs to be restored, for example because the merged records contained many related records in total, or related records from many different Objects. In these situations the process to restore the related records can exceed the DML Statements limit or Salesforce Governor Limit.
- When the DML Statements limit (total number of related records) is reached, the restore action cannot be processed at all and will fail. Usually this occurs at around 100 related records or more.
- In case of the Salesforce Governor Limit (total number of queries, for example because of related records from many different Objects), only a part of the related records can be restored. To make sure that at least the most important related records are recovered when undoing such a merge, sort your tracked related Objects in order of priority, with the most important objects listed first.