All blog topics
Practical CRM guidance

Merging CRM duplicates: rules and test cases for safe operation

Identifying duplicates is only the first step. Merging them can lead to incorrect assignments of responsibilities, activities or consent records. This article explains how companies can define robust merge rules and test their impact before using them in production.

CRM8 min readUpdated 10 November 2026Softwarecheck Editorial Team

Matches are not necessarily duplicates: verify identity reliably

A potential duplicate match is initially a flag for review, not proof of identity. Identical names, telephone numbers or email addresses can belong to different people, for example where people share a name, use a central telephone number or share a departmental mailbox. Conversely, the same person may appear with different contact details after changing employer. Before any merge, it must therefore be clear which identity the CRM record represents: a person, an organisation or a specific business role. Two entries for the same person do not necessarily need to be merged if the data model provides for separate contact roles.

Detection should distinguish between search attributes and evidence of identity. Standardised spelling, cleaned telephone numbers and similarly written addresses help identify candidates; they do not establish identity on their own. Uniquely assigned identifiers provide stronger evidence, provided their origin, scope of validity and assignment are known. For example, customer numbers from different source systems must not be compared without reference to the respective system. Even a matching company identifier does not justify a merge if the CRM deliberately maintains separate records for multiple sites belonging to the same legal entity.

Each record type needs clear, traceable rules: which combination of attributes establishes a confirmed duplicate, which requires clarification by the relevant business team, and which indicates that records should remain separate? Missing information is neither a contradiction nor a confirmation. Conflicting reliable identifiers or an unclear distinction between person and role should block an automated merge. A similarity score can help prioritise reviews; without a business-defined identity rule, it must not determine whether records are merged.

Resolving field conflicts: which value should be retained?

The CRM needs a business-defined selection rule for every field prone to conflicts. The contact designated as the master record must not automatically determine all values: its address may be outdated while its customer number remains authoritative. A rule matrix should therefore specify, for each field, which source takes precedence, which check validates a value and when an automated decision is not permitted. The modification date of the entire record is not a sufficient indicator of quality; a new call note does not make the stored address more current.

Empty fields also need an unambiguous meaning. “Not recorded” should normally not replace an existing, verified value. However, information that has been deliberately deleted or explicitly marked as invalid must not reappear unnoticed as a result of a merge. If the CRM cannot distinguish between these states, the scenario concerned must be excluded from automation. For multi-value fields, it must also be clear whether values can be added or are mutually exclusive. Two different telephone numbers can coexist; two conflicting customer statuses cannot be meaningfully combined.

Related fields must be treated as a unit. Selecting the street, building number, postcode, town or city, and country individually based on recency can create an address that did not exist in either source record. Similar dependencies exist between a status and its reason, or between a currency and an amount. Calculated fields should be recalculated after the merge using the remaining source values, where the system supports this. If there is no robust rule for a conflict, leaving the decision unresolved is sounder business practice than forcing the system to select a winner.

  • Define for each field: preferred source, required verification status and conditions for a manual decision.
  • Use timestamps as a selection criterion only if they reflect how current the specific field value is in business terms.
  • Distinguish between unknown, deliberately deleted and invalid values; do not replace missing status information with assumptions.
  • Select related fields as a group and explicitly distinguish between adding, replacing and conflicting values in multi-value fields.

Assigning activities, relationships and consent records correctly

When merging records, simply reassigning activities and relationships to the surviving CRM record is not enough. Their business context must be preserved: a meeting may relate to a particular sales opportunity, a support request to a contract, and a note to a contact's former role. If a person changes employer, earlier activities must not consequently be attributed to the new company. For each relationship type, it is therefore necessary to define which links are transferred and which historical associations remain unchanged.

Relationships with their own significance require particular attention, such as a billing contact role, membership of an account management team or a time-limited contact role. These assignments may carry additional information, such as validity periods or areas of responsibility. They must neither disappear silently during the merge nor be transferred without their context. Activities already linked to both source records should not appear twice afterwards either. However, an identical subject and date alone are not enough to treat two activities as the same.

Consent records are not freely transferable contact attributes. They must remain linked to the person concerned and to the documented purpose, channel and, where applicable, the specific contact address. Consent for one address must not automatically authorise the use of another; nor must a positive status obscure an applicable withdrawal of consent. The CRM should retain evidence with its source, timestamp and documented scope, and use this to determine permitted use. If the correct association cannot be reliably established after merging, no authorisation to send communications may be inferred.

  • Transfer activities together with their links to projects, contracts and organisations; do not replace historical affiliations with current ones.
  • Preserve relationships, including roles, validity periods and other assignment attributes.
  • Distinguish between multiple links to the same activity and genuinely separate activities.
  • Assess consent, withdrawals of consent and suppression flags within their respective scope, rather than applying a contact status across the board.

Building test cases: deliberately challenge the system with incorrect merges

A robust test dataset includes not only obvious duplicates but also deliberately similar records that must remain separate. Use synthetic data or a test copy prepared in line with data protection requirements in an isolated environment. Define the expected outcome before each test: flag as a candidate, submit for manual review or merge. Add a positive control case with a clearly confirmed duplicate. This reveals whether a cautious configuration prevents incorrect merges but also blocks legitimate ones.

Also test processes where errors only become apparent through sequencing or repetition. One important case is a group of three: A resembles B, B resembles C, but A and C demonstrably do not belong together. The system must not infer a shared identity without verification. Repeat the same run and vary the order of the records. Also test a change made between match detection and merging. Use fixed test IDs to record which records remain afterwards and whether unrelated records remain unchanged.

Rerun these test cases after changes to matching rules, normalisation or import processes. Assess false-positive matches separately from incorrect merges that have actually been executed: a candidate flag can be dismissed, whereas an automated action changes the dataset. Acceptance therefore requires a documented comparison of expected and actual results for each case, not just a total count of detected duplicates. Unresolved discrepancies should block production use of the affected automated rule.

  • Shared contact details: two different people use the same switchboard number or family address; no automated merge must take place.
  • Normalisation: umlauts, hyphens and the removal of legal-form suffixes produce similar search values but must not obscure distinct identities.
  • Chaining: A–B and B–C are matching pairs; the group of three must not be fully merged without confirmation of a shared identity.
  • Outdated match: a record is corrected after the candidate search; execution must recheck the changed source data.
  • Repetition and interruption: a rerun or simulated error must produce neither an additional merge nor an inconsistent intermediate state.

Ensuring approval, logging and correction in live operations

In live operations, every merge needs a clear approval process. Companies should define who may review proposals, approve merges and start batch runs. For larger datasets or changes that are difficult to reverse, separate approval by a second person is advisable. Automated runs need a limited scope, a responsible team or function, and defined stop conditions, such as failed processing steps. After rule changes, approval should only be granted following renewed testing.

The log must make the action traceable: it should include the person or process executing it, the time, approval, the rule version used, and the identifiers of the original records and the surviving record. It should also show which changes were actually made and which downstream systems have already been notified. Logs must be protected against undetected changes; access and retention must be appropriate to their purpose. Keeping an unrestricted copy of all deleted content is neither necessary for this nor unproblematic from a data protection perspective.

A tested correction procedure for incorrect merges must be in place in advance. An undo function is sufficient only if its limitations are understood: intervening edits and changes already propagated may require a coordinated correction. A full backup is no substitute for targeted restoration of individual records. The operational process should therefore define how affected records are protected from further automated changes, how subsequent changes are identified and how corrections are coordinated. The incident is not closed until checks in the affected systems have been documented.

  • Document approval: record the responsible person, the scope of the run and the underlying rule version.
  • Enable interruption: define a run identifier, a way to stop the run and a responsible point of contact before starting.
  • Verify corrections: document restored records and any remaining limitations in the incident record.
  • Analyse errors: address recurring causes through rule changes and have those changes approved again.

Related reading