How to test whether form retries create duplicate enquiries | AZArticle
Instant approval is live — your article publishes the moment you submit. Read the guidelines

How to test whether form retries create duplicate enquiries

Author: Reza Razm Published On: 23 Nov 2026 Computers and Technology 5 views

A customer sends a quote request through a website. The enquiry reaches the CRM, but the workflow never receives the CRM’s reply. When the workflow retries, it can create a second enquiry for the same request. Staff may then call the same person twice or mark one copy as unanswered. The quickest way to find this problem is to rehearse the retry with a test record and compare the CRM before and after.

Give each enquiry a stable event ID

Assign one ID to the original submission and keep that ID across attempts to process it. Where possible, use the submission ID provided by the form platform. A webhook delivery ID works only if it stays the same on replay. If you own the form backend, create the ID when it accepts the enquiry and write the ID alongside the enquiry before handing it to the workflow.

A useful key includes both the source and the event ID. For example, a quote form could send website-quote:demo-001 to a CRM field named source_event_key. Two different forms could issue the same ID without referring to the same submission, so the source prefix matters. An email address alone makes a poor event ID. The same person can request quotes for two distinct projects, and both should reach the team.

Run three cases before launch

For this guide I used two synthetic submissions and a small local simulation of a CRM. The simulation stored each enquiry in a map keyed by its source and event ID. Its upsert returned the existing record when the key was present. No live CRM or customer data was involved. You can repeat the same checks with a test mailbox and test records before turning on the real integration.

  1. Deliver the same event twice. Send the same payload twice with the key website-quote:demo-001. The local test returned the same record ID and left one enquiry. In your own test, verify the record count and the number of notifications.
  2. Send a distinct enquiry from the same person. Keep the contact details unchanged and replace the event ID with demo-002. The test resulted in two enquiries. This catches workflows that discard legitimate requests because the sender already exists in the CRM.
  3. Simulate losing the reply after the write. Start with an empty test store. Have the connector write the enquiry and then report a timeout. Retry using the original payload and key. The test left one record and returned its original ID. Compare this with a timeout before the write, where the retry should create the missing record.

Make the write safe when two attempts overlap

Use the CRM’s documented upsert operation or a database uniqueness constraint for the event key where available. A workflow that first searches for the key and then creates a record can still produce duplicates if two attempts search before either writes. A uniqueness check inside the destination’s write operation closes that gap. If the destination cannot enforce uniqueness, consider an integration store keyed by event ID that records the destination ID and the processing state.

Repeat the checks for each side effect. Keeping one CRM record does not automatically prevent two emails or two staff notifications. For example, store a separate completion entry for the staff notification, keyed by the same event ID and the notification type. If the sender supports its own idempotency key, use it. If the workflow can't determine whether the message was sent, record the uncertainty so an operator can check before retrying.

Keep a short receipt for each run

Record the source event key, the attempt number, the destination record ID and the timestamp. That gives a colleague enough information to tell a new enquiry from a retry without copying customer details into logs. Keep production logs private and retain them only as long as the team needs them. When rehearsing an n8n workflow, its execution retry documentation explains how to rerun a failed execution with its previous data. This is useful for checking the same event after a workflow change.

For an example of how website enquiries fit into a CRM workflow, see Hand On Web’s n8n automation service. The useful test is the same whichever connector you use. Replaying the original event should produce the original record. Receiving a genuinely new event should produce a new enquiry.


R

Reza Razm

Published on 23 Nov 2026  |  Category: Computers and Technology

View author page

Comments (0)


Back to Articles