Content
Integration Dead Letters: Who Owns an Order That Did Not Finish?
Time to read: 4 minutes
When one ecommerce order lands in a dead-letter queue, assign it to a named incident owner on integration support. That person keeps the order open, gets evidence from the store and ERP owners, and records the decision. They do not get replay authority just by owning the ticket. Under a policy agreed in advance, the designated order operations approver authorizes a specific recovery action after the system owners verify the effects it could repeat. A permitted operator executes only that action.
A dead letter tells you that a message could not be processed as expected. It does not tell you whether the ERP created an order, the warehouse reserved stock, or a payment was captured. Decide what to do with the business order before deciding what to do with the message.
Decide which action the evidence supports
| What the owners verify | Disposition for the failed operation |
|---|---|
| Rejected without the effects the operation can create. The destination confirms rejection before commit; no competing attempt is still pending. | Fix the cause and check that the order is still valid. Review the corrected operation under the current interface contract; authorize it only if its scope and duplicate protection are verified. |
| Accepted, with all or some effects present. The ERP order exists; a reservation, shipment update or acknowledgment may still be missing. | Do not replay order creation. Link the existing record. If something else is missing, propose only that operation and apply its own approval and verification rules. |
| Uncertain. A timeout, stale extract or incomplete search leaves the outcome open. | Hold replay. Name the system owner who can check the authoritative record or pending work, and set a next-check deadline. Escalate a missed deadline or threatened customer promise; neither grants permission to resend. |
Check the effects this particular action could cause, including downstream ones. Use the store plus source-order reference, the logical operation, message and attempt IDs, and linked ERP or warehouse references. A timeout can hide a committed write. As AWS explains in its guide to idempotent APIs, duplicate protection depends on what the receiver treats as the same intent and how long it remembers it. A key that protects ERP creation does not necessarily protect an inventory or payment step. Verify the contract for the exact action, including how corrected input is handled; don't generate a fresh identity to bypass an expired key.
Worked example: Approve a status repair, not an order replay
Fictional exception record. A dealer order for four units is stuck at “Sent” in the store. Its ERP create attempt timed out. The merchant's assumed rules allow fulfillment to proceed once one linked ERP order and its four-unit reservation are confirmed.
| Approval log field | Fictional entry |
|---|---|
| Identity and scope | dealer-east/4187; create attempt A1, message M64. Open exception EX-27 is assigned to the on-call integration support lead. |
| Evidence at 14:10 UTC | ERP owner confirms one committed order, E-703, for this store reference. Inventory owner confirms one four-unit reservation on E-703. Commerce owner verifies the store order is active but its status is stale. This dealer account is invoiced; the proposed action cannot capture payment or request fulfillment. |
| Decision and approver | Order operations duty manager approves only Sent → Accepted for storefront order dealer-east/4187 linked to ERP order E-703, if the verified state still holds. ERP create replay is denied. Commerce owner confirms the approved repair path changes status only and cannot regress a newer state. |
| Execution conditions | One assigned commerce operator. Recheck the linked reference and current status before acting. If the order has advanced, changed or been canceled, stop and return the decision to the approver. Record the action and evidence references in EX-27. |
| Closure at 14:17 UTC | Commerce shows “Accepted” linked to E-703; the ERP still shows one order and one four-unit reservation. Support records the before/ |
Counterexample: The same ERP search comes back empty, but the import worker still has an attempt pending. “No order found” is not verified rejection. Support holds the replay, asks the ERP owner to account for that attempt, and updates operations before the fulfillment deadline. If a vendor takes the next check, the exception stays with support until another named owner explicitly accepts it.
Put the approval log to work
- Name the duty roles and deputies. Separate evidence checks, business approval and execution in the runbook. If the action can move money or release a shipment, add the required finance or fulfillment approval. Queue access alone grants none of those rights.
- Make the exception record the place to claim work. Keep the expected and observed effects, sanitized evidence references and times, next deadline, proposed action, named approver and permitted operator together. Account for active automated retries and manual work so two people or paths cannot act on the same order.
- Rehearse the decision and its stop condition. In an approved test environment, make an ERP create succeed but withhold its response. Check that the team denies a second create, approves only a supported repair if needed, and closes the record on business evidence, not a green queue icon.
If you cannot yet locate the last confirmed state, start with how to trace a failed store-to-ERP order. Bring one completed approval log to an ERP integration scope discussion if the gap is who can verify, approve or execute recovery across vendors.
Let professionals meet your challenge
Our certified specialists will find the most optimal solution for your business.