Two records share a contact email and sound like the same customer. One belongs to a parent company, the other to a franchise managed by the same accountant. Merge on email alone and you can move invoices, support history, and access permissions to the wrong account.
Plan deduplication as a series of proposed decisions. Keep the evidence for each one alongside the original IDs.
A proposed merge earns its way to the new database
- Normalize values Standardize formatting for comparison
- Find candidates Group likely matches
- Apply rules Separate trusted matches and ambiguity
- Review conflicts Approve, reject or hold each pair
Separate match signals from merge rules
Normalize phone numbers and whitespace for matching. Preserve the original strings so an operator can check the source. A stable external customer ID from the same account and issuing system can support an automatic match if you have verified it is unique. A shared address or name should generally suggest a pair for review.
Check a proposed group as a whole. If A matches B by email, and B matches C by phone, A and C may still be different companies. Show the whole group before anyone confirms it.
Decide which values survive
Suppose the same company exists in a sales list and a finance export, confirmed by a trusted billing account ID. Keep finance’s legal name, keep the assigned salesperson from the CRM, and retain both original identifiers in a cross-reference. If the records disagree about an authorized contact, pause that part of the merge for the account owner.
Preserve orders and notes with their source record history. Where a merge changes who can see information, put that group through an access review before applying it.
Give reviewers a place to record that two entries should stay separate. Carry the decision into later runs so the franchise and parent company do not come back as a fresh suggestion with every export.
Run the rules again after review
Export accepted, rejected, and undecided groups with reason codes. Add known false matches to the reviewed examples used in the next rehearsal. On import, validate that every old ID maps to the intended target or appears on a held-record list. That makes it possible to trace a missing customer back to a decision without rerunning the cleanup by hand.