Field notes · Rock and Tar LLC
How to keep a retried integration from creating two work orders
A timeout can leave the sender unsure whether a work order was created. Decide how both systems will recognize the same business event before you allow an automatic retry.
Name the event that deserves one work order
For example, estimate E-104 is approved at revision 2. The intended result is one work order for this approval. A second delivery of the same approval should return the same work-order reference or leave the existing record unchanged. A later revision is a separate business decision. Decide whether the receiving team updates that work order, reviews a change request or starts new work.
Keep a stable reference across retries
Use an identifier that survives retransmission. An email address, timestamp generated at send time or project title can change or be shared by unrelated records. Record the source event ID, the receiving work-order ID and the outcome. Where the destination supports a documented idempotency key, carry the same key for the same event on retry. Confirm retention rules and how simultaneous requests are handled.
Test the uncertain outcome
In a test environment, simulate the destination creating the record while its acknowledgment fails to reach the sender. Retry the same event. Verify both the work-order count and any downstream notifications. Also test a genuinely new estimate from the same customer so that a broad duplicate rule does not discard valid work.
Give the office a recovery decision
If the systems cannot agree on the outcome, place the item in an exception list with its source reference and time. The operator needs to search the destination, attach an existing work order or authorize a new one. Recording that decision prevents the next overnight retry from reopening the same mystery.