DaletGuard supports civilians affected by armed conflict through Families Beyond War. All sides, no political affiliation. About our humanitarian work

CRM Duplicate Records and Idempotent Syncs

CRM duplicate records frustrate sales teams, and they confuse every sync that copies them into a second system for reports. Some duplicates are made by people in the CRM, and others come from integrations that read pages twice or retry. A careful sync design stops the second kind of duplicate and is honest about the first, which it cannot fix. This article explains keyed upserts, replays, merges and deletions, and it states clearly how DaletPipe handles each of these cases. Read it with your own CRM in mind, and note which duplicates come from people and which come from code.

Where do duplicate records come from in a CRM integration?

Three sources cause most of them. People create a second record instead of finding the first. Imports create records without matching. Integrations repeat a read or a write after a failure and create a copy.

Report crm duplicate records to the CRM owner with the provider reference. Agree one matching rule for crm duplicate records in your reports. Report crm duplicate records to the CRM owner with the provider reference.

Keyed upserts use the connection, the entity and the provider reference. Revision history keeps a change as a new revision.

Only the third source belongs to the sync. A sync that keys each record by the provider's own reference cannot create a copy from a replay. In fact, the other two sources exist in the CRM itself. Also, the sync reports them as they are.

Why must a write be safe to repeat if a call dies?

A timeout leaves two possibilities. Indeed, the provider may have processed the write, or it may not. In fact, a sync that retries blindly may create the record twice. An idempotent design makes the second attempt harmless.

Many crm duplicate records exist before the first sync ever runs. Keyed upserts make a repeated page harmless.

Illustration of folder, eye, people for crm duplicate records
Key takeaway

A keyed upsert makes a repeated read harmless. A record that a CRM deleted or merged shows up as a reference that stops appearing, so plan a key set check for those cases.

How does DaletPipe stop copies when it reads a page twice?

Each record is stored once for each connection, entity and provider reference. Notably, a repeated read updates the same row. Also, the page and its cursor are committed together. Therefore, a restart repeats at most the page that was in flight.

Each step is recorded with its date.

Ask which crm duplicate records matter to sales before you clean them.

Replays are therefore safe to run. Besides, an incremental run starts from the beginning of the last successful run and overlaps on purpose. Thus, the overlap catches records that changed after their page was read. Also, the upsert absorbs the repeated records without creating copies.

The raw provider payload sits beside each canonical record. If a provider sends the same record in a different shape on a second read, the raw copy shows it. Revision history keeps a change as a new revision, and not as a new record.

How do deletions and merges show up in a pull from a CRM?

A pull reads what exists. Likewise, a record that a CRM deleted stops appearing. Also, a merge leaves one record where there were two.

The result is stored with the run.

A merge usually keeps one reference and drops the other. Therefore, the dropped record simply stops appearing.

Many crm duplicate records exist before the first sync ever runs. In addition, ask which crm duplicate records matter to sales before you clean them. Keyed upserts make a repeated page harmless.

The provider reference is the identifier that the CRM itself assigned. Overall, read the revision history before you call a record a duplicate.

Receipts count pages, records and distinct revisions. Moreover, inbound delete notices on connection-bound routes keep evidence of a deletion. A team that needs to know about deletions also compares the receipt total with a count from the CRM. In fact, it investigates every gap.

  • A deleted record leaves a stored row that is no longer refreshed.
  • A merged contact leaves one live reference and one stale reference.
  • A reused identifier can overwrite an old row with new data.

What do we check after a CRM merge is done?

Compare the count in the source with the receipt total and the records total. List the references that stopped appearing. Decide for each one whether the stored row should be hidden, kept or marked as merged in your own layer.

Every figure is taken from the code.

A sync that copies crm duplicate records faithfully is not at fault. Indeed, read the revision history before you call a record a duplicate.

DaletPipe connections list screen
For example, the connections list screen of DaletPipe.

How should reports treat duplicates that live in a CRM?

A faithful sync copies them. Also, the report layer then needs its own matching rule, such as one person for each email address. Notably, that rule belongs to your analysts. The reason is that it depends on what a duplicate means for your business.

Test keyed upserts by reading the same page twice.

The canonical record helps by giving every contact the same keys, whichever CRM it came from. Matching rules can then be written once. The raw copy remains available when a rule needs a field that the canonical model does not carry.

Why do two CRMs with one customer double the problem?

A customer who appears in two CRMs has two references, one in each system. Indeed, the canonical record keeps both, tagged with their source platform. Besides, your product decides whether the two belong to one person, and DaletPipe does not guess.

A sync that copies crm duplicate records faithfully is not at fault. Fewer crm duplicate records mean cleaner dashboards for everyone. Test keyed upserts by reading the same page twice.

Never replace a provider reference with your own guess. Revision history keeps a change as a new revision.

That choice is fully deliberate. Also, a guess that merges two people wrongly is worse than a duplicate that a person can review. Also, the class on migration planning teaches how to write the matching rule down before the move starts.

Who is it that owns the matching rule for people?

A data lead should own it, with a business owner who signs it. The rule lists the fields that match, the fields that break a tie and the cases for a person.

Every change is reviewed by a second person.

Agree one matching rule for crm duplicate records in your reports.

What are three habits that keep CRM duplicate records low?

Key every record by a stable provider reference. Compare counts after each large change in the source. In addition, write the matching rule for people in one place, and review it each quarter.

Each count is checked against the source.

Revision history keeps a change as a new revision.

The CRM sync reliability guide places these habits next to the others. Also, the incremental sync article explains why replays are safe. Also, the coverage receipts page explains what the counts show.

A diagram of 3 connected steps, each with a small drawing: Keyed upserts, Provider reference, Revision.

What questions do readers ask about this topic most often?

What key does DaletPipe use to avoid duplicate records?

A stored record is unique per connection, entity and the provider's own reference. A repeated pull updates the same row, so a rerun cannot create a copy in the stored data.

Does a pull notice that the CRM merged two contacts?

A pull reads what exists, so a merged contact appears as one record and the absorbed record stops being returned. Compare counts and watch for references that stop appearing.

Does a full resync create duplicate records?

No, a full resync reads the whole entity again, and the upsert key keeps one row for each provider reference. Revision history records a change as a new revision and not as a new record.

Why do duplicate records still appear in customer reports?

Many duplicates live inside the CRM itself, such as two contacts with the same email. A sync copies them faithfully. A report must apply its own matching rule if it needs one person per email.

See how DaletPipe fits the providers your team uses today

Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.