Skip to content

Write deduplication rules before migrating customer data

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

  1. Normalize values Standardize formatting for comparison
  2. Find candidates Group likely matches
  3. Apply rules Separate trusted matches and ambiguity
  4. Review conflicts Approve, reject or hold each pair
Candidate grouping produces evidence for a merge decision.

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.

More articles.

  1. Rehearse a legacy data migration with the people who use it

    Time the full migration, verify meaningful business records, and give operators a say in whether the new system is ready.

  2. Build a CSV import that people can review before it writes

    Turn supplier files into a preview of inserts, edits, and held rows so staff can correct problems before a CSV import goes live.

  3. Make a system-of-record map before you integrate

    Decide which system owns each field, who can change it, and how corrections move between your CRM, order system, and accounting software.

All articles

Want a second opinion on your project?

Book a call and we’ll talk through your options.

JurajCEO, QikBuild

You leave the call with

  • What we would build first
  • A rough price range
  • Whether custom software makes sense for you
Book a 30-minute call

Or write to hello@qikbuild.com