Undoing Merges - Data Doctor Knowledge Base

Undoing Merges

Made a merge you need to reverse? Data Doctor's Merge Undo feature lets you restore deleted records and reconstruct their relationships using the comprehensive artifacts created during every merge operation. This guide explains how merge data is captured and walks you through the undo process step by step.

How Merge Data Is Captured

Every time a record is merged—whether through Auto-Merge or manual merging—Data Doctor creates a detailed merge artifact before deleting the non-master record. This artifact serves as a complete snapshot that enables future restoration.

What We Capture

The merge artifact is designed to preserve everything needed to fully restore a deleted record. Here's what's included in every artifact:

All standard field values
All custom field values
Parent relationship IDs
Child record references
Master-detail relationships
Lookup field values
Record ownership data
Merge timestamp & context

Additionally, each artifact records the master record ID (the record the deleted record was merged into), the rule that triggered the merge, and the user who performed or scheduled the operation.

The Artifact Lifecycle

Merge Initiated

User triggers merge or Auto-Merge processes a duplicate group

Artifact Created

Complete snapshot of the non-master record is captured and stored

Child Records Re-parented

Related records are moved to point to the master record

Record Deleted

Non-master record is removed from the database

Artifact Available for Undo

Artifact remains accessible in Merge Undo until retention policy expires

Limitations to Be Aware Of

While the artifact system is comprehensive, there are important limitations that affect what can be fully restored:

Formula & Rollup Fields

Calculated fields are not stored in artifacts. After restoration, these fields will recalculate based on current data, which may produce different values than before the merge.

Time-Sensitive Data

The longer you wait to undo a merge, the more your data may have diverged. Related records may have been modified, creating potential conflicts.

Child Record Changes

If re-parented child records have been updated since the merge, undoing will restore the parent relationship but won't revert changes made to the child records themselves.

External System Sync

External systems integrated with Salesforce won't automatically reflect an undo operation. Manual reconciliation with third-party systems may be required.

Not Captured: Chatter posts, feed items, field history tracking entries, and some system-managed fields (like CreatedDate and CreatedById) cannot be restored. The restored record will have new system timestamps reflecting when the undo occurred.

Storage Consideration: Artifacts consume org storage. High-volume merge operations can accumulate significant artifact data. Work with your admin to establish appropriate retention policies based on your organization's needs and storage capacity.

How to Undo a Merge

Follow these steps to restore a previously merged record using the Merge Undo feature:

1

Navigate to Merge Undo

Data Doctor Settings → Merge Undo

From your Data Doctor dashboard, click on Settings in the navigation menu, then select Merge Undo. You'll see a list of all merge artifacts available for restoration, sorted by merge date with the most recent first.

2

Preview the Artifact

Actions Column → Preview (Eye Icon)

Locate the merge you want to undo and click the preview icon (eye) in the Actions column. This opens a detailed view of the artifact without making any changes to your data.

3

Review the Captured Fields

Carefully examine the stored field values, relationship data, and merge context. Verify this is the correct record you want to restore. Pay attention to any fields that may have become outdated or that reference records which no longer exist.

4

Execute the Undo

Click "Undo Merge" Button

Once you've confirmed this is the correct artifact, click the Undo Merge button. Data Doctor will recreate the deleted record, restore its field values, and re-establish child record relationships where possible.

After Undo Completes: You'll receive a confirmation message with a link to the restored record. We recommend reviewing the record immediately to verify all data was restored as expected and to address any formula fields or relationships that may need attention.

Common Questions

How long are merge artifacts retained?

By default, artifacts are retained for 90 days. Your Salesforce administrator can adjust this retention period in Data Doctor Settings based on your organization's compliance requirements and storage constraints.

Can I undo a merge if the master record has been deleted?

Yes, but with limitations. The record will be restored, but it won't be linked to a master record. Any child records that were re-parented to the now-deleted master will need to be manually reassigned after the undo operation.

What happens to child records when I undo a merge?

Child records that were re-parented to the master during the original merge will be moved back to point to the restored record. However, any changes made to those child records since the merge will remain—only the parent relationship is reverted.

Can I undo multiple merges at once?

Currently, merges must be undone one at a time. This is intentional—each undo operation should be carefully reviewed to ensure data integrity. For bulk restoration needs, contact our support team for guidance.

Will undoing a merge affect my reports and dashboards?

Yes, restoring a record will affect any reports or dashboards that include the relevant object. The restored record will appear in reports based on its field values. Rollup summary fields on parent records will also recalculate to include the restored record.

Need Help? If you encounter issues during the undo process or have questions about a specific artifact, contact our support team. Please have the artifact ID ready—you can find it in the artifact preview screen.