Skip to content
Webhooks and APIs3 min read

By · Editorial policy

Why CRM Automations Create Duplicate Contacts

Use the CRM’s supported upsert against a durable external contact ID. Deduplicate webhook deliveries separately. Two legitimate events for the same person can carry different event IDs and still need to update one contact.

What is the practical answer?

Use the CRM’s supported upsert against a durable external contact ID. Deduplicate webhook deliveries separately. Two legitimate events for the same person can carry different event IDs and still need to update one contact. Put three identifiers side by side for a sample lead: submission form_14, provider delivery evt_99, and contact person_104. The submission identifies a captured action, the delivery identifies how it arrived, and the contact identifies the CRM record. If a second form submission carries a new event ID, deduplicating the event still leaves two legitimate requests to update person_104. Use a source-specific external ID if one exists and preserve its namespace. Email can change, differ by capitalization policy, or be shared by several people. If no stable identifier is available, document when an email match is acceptable and when an operator needs to merge or split records.

Evidence: HubSpot CRM contacts and upserts · Reddit webhook redelivery discussion

  1. Receive two lead eventsInput
  2. Resolve contact identityDecision
  3. Upsert one CRM contactExternal action
  4. Record provider contact IDProcess
Separate event identity from customer identity so repeated events and legitimate updates converge on one contact.

Choose which identity owns the contact#

Use a source-specific external ID if one exists and preserve its namespace. Email can change, differ by capitalization policy, or be shared by several people. If no stable identifier is available, document when an email match is acceptable and when an operator needs to merge or split records. Confirm which identifiers and upsert operations your CRM actually supports.

What you findWhat to do
Same event ID, same contactreturn the existing result.
Different event, same external contact keyupdate the existing contact where ownership permits.
Two contacts share an email addressescalate before merging if the external identities disagree.

Remove the search-then-create race#

Two processes can both read “contact absent” before either writes. Prefer the provider’s unique upsert operation. If you own an integration database, constrain the person mapping and coordinate creation by that key, including recovery after a successful provider write and a lost response. Record the provider’s returned ID on the chosen contact mapping.

Handle merges and corrections deliberately#

Start by mapping lead_source plus source_contact_id to the CRM record. Store provider IDs from successful writes. When a person changes their email, preserve the mapping and update the owned email field rather than creating a second contact. When a CRM merge changes the provider ID, update the mapping using the provider’s merge evidence before replaying stale events.

A different solution applies to historical duplicates. Export suspected pairs, identify the canonical record with a human-reviewed rule, and preserve associated activities or references before merging. Test with two contacts at one organization that share a mailbox. They should remain separate if the authoritative person IDs differ and your business rules treat them as separate people.

Verify it with a failure drill#

Release two events for person_104 at the same instant using a barrier in your test fixture.

  • Verify that both resolve to one CRM contact ID, that an email correction updates that ID, and that replaying evt_99 does not create another row.

Sources and further reading

Official references support technical claims; community discussions are used only as problem signals.