BlogIntegrations · November 9, 2026 · 4 min read

Contact Form 7 CRM Batches: Reconcile Partial Success Before Retrying

Map CRM batch results to individual CF7 inquiries. Preserve confirmed writes, review ambiguous outcomes and retry only eligible rows.

A worker sends three Contact Form 7 inquiries to a CRM in one request. Two records are created, and the third fails validation. If the worker marks all three complete because the HTTP status is in the 2xx range, it loses one inquiry. If it repeats the full create request, it may create duplicates or run downstream automations again. Store an outcome for each inquiry and treat the batch as a transport envelope.

Three inquiry cards pass through a sorter, with two checked and one set aside for review.
Generated conceptual illustration; not a product screenshot or measured result.

Give every input a durable identity

Before sending, record the local inquiry ID, the CRM operation, the mapping revision, the destination account and an identifier for this attempt. A source inquiry ID identifies the same inquiry across retries; an attempt ID identifies one request or row in one request. Keep both. The CRM may assign a third identifier after creation. Save the mapping from the local ID to that destination ID when the write is confirmed.

HubSpot’s error handling guide describes opting into multi-status responses for supported CRM object batch creates with a unique objectWriteTraceId per input. Its example shows the trace ID in an error context and does not show that field in the success row. Plan how to match successful results as well as errors. Do not assume that an echoed trace ID is present everywhere, that result order matches input order, or that sending the same trace ID prevents a second write.

Read the endpoint and operation you actually use. For example, HubSpot’s contacts guide distinguishes create, update and upsert. If the endpoint returns a documented unique property you included, match that property exactly. If the response lacks a stable match, use a supported lookup in the destination. If your integration cannot reliably confirm which record belongs to which inquiry, reduce the batch size or use single-record writes until you can establish the mapping.

Apply row outcomes before acknowledging the job

Local state Evidence Next action
Confirmed Success matched to the source ID and destination ID. Record completion. Do not create again.
Rejected Matched input error that will recur with unchanged data. Route to mapping or operator review.
Retry eligible Documented transient rejection with no write, or a safe documented retry contract. Retry only eligible rows under a bounded schedule.
Unknown Timeout, incomplete response, duplicate match or unmatched result. Look up the destination before deciding whether to write again.

Suppose q101 and q103 match two returned records, while q102 matches an invalid property error. Persist the first two destination IDs and send only q102 to the mapping review queue. If the response reports one error but the worker cannot map it to an input, hold the unresolved rows for reconciliation. A batch count of two successes is useful telemetry; it does not identify which two records were created.

Make the local update durable before acknowledging queue delivery. If a process crashes after the CRM commits and before your journal commits, the next worker starts with an unknown outcome. It can consult the destination’s supported unique lookup or safe idempotent operation before writing again. Do not use an approximate email match to assign a destination ID, and do not replace existing contact fields without checking the endpoint’s update behavior and your own ownership rules.

Separate response failures from handoff failures

Handle authentication and quota errors according to the provider and operation. A parse failure, transport timeout or dropped connection does not tell you whether the CRM committed the write. Compare your behavior with the response validation guide and the rate limit guide. If an endpoint accepts asynchronous work and returns a status URL, follow that documented status path instead of treating acceptance as a final row result.

In logs, preserve counts, attempt IDs, matched source IDs and a bounded error classification. Keep CRM credentials, raw messages and full responses out of ordinary diagnostics. Error text can repeat the value that failed validation. Give operators an authorized way to find the underlying record if they need to fix it, rather than copying its contents into the alert.

Keep the original attempt’s mapping revision with the journal. After a mapping correction, a new attempt may use a new revision, but it should still refer to the same source inquiry. Record that distinction so an operator can explain why a rejected row was sent again without reopening the two confirmed writes.

Prove that a partial batch can be replayed safely

Use synthetic fixtures for all success, one permanent rejection, an unrecognized trace ID, a success result with no usable identifier and a simulated timeout after the destination write. Shuffle fixture result order. A worker that indexes into the original request will fail this test. Also simulate a crash before local acknowledgement and verify that the already-created record can be found without being created again. Track unknown rows separately so a dashboard does not quietly treat them as either errors or successes.

For a separate count of CF7 form activity, see Svetlik Analytics for Contact Form 7. Use the CRM reconciliation journal to answer which individual inquiries arrived downstream.