Order O-417 has been paid. The shop sends it to the enterprise resource planning system, usually called the ERP, and receives a connection error. A warehouse operator sees an empty field where the ERP order number should be. She could enter the order by hand. What she cannot tell from that screen is whether the first document will appear a minute later. It is worth writing down that decision before automating it. Otherwise a computer can repeat, at much greater speed, the conflicting actions that colleagues currently resolve over the phone.
O-417 is an illustrative example. Following a single order from checkout to the warehouse makes it possible to see who can act on which piece of evidence. To run the exercise in your business, bring an anonymised order, a description of one process, and the people who actually sort out difficult transactions. The useful outcome is a practical answer to a narrow question: what can the next person safely do when the usual sequence stops?
Set the boundary where the work is actually finished
Write down the first and last events that someone can verify. In this example the process starts when the shop confirms payment for an order. It ends when the warehouse accepts a fulfilment task that can be traced to the right ERP order. Proof that the parcel was delivered can belong to a separate process. An ERP document number alone says nothing about whether the warehouse received the lines it needs for picking. Put the finish line too early and your completion figures will tell an entirely different story from the one at the packing bench.
Draw three columns on a sheet of paper: shop, ERP and warehouse. In each, record what counts as completion in that system and who can see it. A member of the sales team might see the payment reference in the shop. The ERP records its own document number. A warehouse running a batch import might initially have only the name of the day's file. If nobody can confirm that a particular task was accepted, the process owner has a question for the warehouse. The time at which somebody sent a file does not establish that the receiver can use the order inside it.
When choosing the first step to automate, distinguish decisions that affect a customer from the work of copying values that have already been agreed. Our guide to choosing what to automate first explores that choice. Applied to this pilot, it gives a sensible division of responsibility. The system can transfer a known item code. A decision to substitute another product stays with the order owner until the company has agreed when a substitution is acceptable.

Build the exception list from cases people have actually handled
Instead of asking an operator to imagine every possible fault, ask for the last order that interrupted a shift. What appeared on the screen? Who did the operator contact? How did the case end? Two examples can display exactly the same message, such as “Import unsuccessful”, even though one was caused by an unrecognised item code and the other by a temporarily unavailable supplier system. Those cases go to different people. Only one of them might be resolved by making the same request later.
Give each exception a short record containing the source reference, the last confirmed step, the fact still in doubt, the next permitted action, its owner and the evidence required to close it. For O-417 this could read: “The shop confirmed payment. A request was sent to the ERP. Creation of the document is unconfirmed. The integration operator will search by shop reference. Closure requires an ERP document matching the submitted order version.” That is enough for the next shift to take over, even if nobody on it saw the initial fault.
Remove conclusions the available evidence cannot support. “ERP rejected the order” invites somebody to re-enter it. If the only observation is an empty response, record precisely that. Keep the time of the request and a place to look for an acknowledgement that arrives later. This discipline becomes valuable when the sales and IT teams discuss an incident. It is quite possible for both to have used the word “failure” accurately about their own screens while meaning entirely different events.
Distinguish missing data from data with the wrong meaning
Suppose an order line contains a product code but the warehouse catalogue has no matching item. A correctly formatted sequence of characters is of little use to a picker. The exception record should identify who owns the mapping between the two catalogues, whether a second approved identifier can resolve the item and what happens to other lines on the order. Choosing a default product would be a particularly poor guess. The invoice total might still look perfectly reasonable after the wrong product had been shipped.
Consider a missing delivery address separately. If the buyer chose a parcel locker, leaving a courier street address empty may be entirely legitimate. The locker identifier and the appropriate carrier code might be essential instead. A courier delivery can require a different combination of fields. Show one example of each to a sales colleague and ask which can actually be fulfilled. The developer now has both a business condition to implement and a pair of useful inputs with which to test it.
Preserve a connection between the original value and the authorised correction. Editing a warehouse code only in an export file allows the next shop synchronisation to bring the old value back. Specify whether the fix belongs on the particular order, in the catalogue mapping, or in both places. After a mapping is corrected, find other waiting orders with the same source code and check whether each is still eligible for processing. The correction that one operator researched then benefits the rest of the queue.

Decide what makes two requests the same order
The shop may send O-417 a second time because it never received an answer to the first attempt. Agree with the ERP supplier on a reference that stays stable across both attempts. A shop order number may be sufficient within one source. If several shops share an ERP but each has its own numbering scheme, the source must form part of the identity. Give the supplier two sample orders with the same number from two shops and ask to see them recorded as separate orders.
A repeat of the original request is different from an amendment authorised by the customer. If the next message for O-417 contains a new address or a corrected quantity, silently returning the original document number could be as damaging as creating a duplicate. Specify how to identify an order version and what happens when the same operation reference arrives with different contents. A useful pair of test inputs is the saved original message and a copy in which exactly one line has changed. They should lead to distinguishable results.
Include two simultaneous submissions in acceptance testing. If each request searches for O-417 before creating it, both may be told that it does not exist. Ask where the single creation is guaranteed, how long the receiver remembers the reference and what is returned to the second caller. Those answers determine whether a retry is safe for this particular connection. The AWS explanation of idempotent requests gives a useful account of why an identifier supplied by the caller can matter.
After a timeout, establish what the receiver already did
The ERP may have saved O-417 immediately before the connection closed. Give the operator a way to search by source reference and to compare the result with the version sent. If exactly one document has the right lines and version, record its ERP number and continue the handover to the warehouse. If several documents match, hold further fulfilment for this order and give their references to someone authorised to examine the corresponding reservations and downstream documents.
A search returning no match needs interpretation. A supplier's search index might be updated later than the document itself. Agree which enquiry returns up-to-date information, when a negative answer can reasonably be relied on and what to do if the supplier cannot specify that. A useful intermediate state is “awaiting reconciliation”. No new picking task should be issued from that state. Sales can still tell the customer that the order was received and is being checked.
For an older application with file import only, document the same decision using the evidence that is available. The file's presence in a shared folder is evidence of handover to the importer. A processing log may distinguish accepted lines from rejected ones. An export of the receiver's documents might be matched to the original file by a stable order reference. Where none of these methods exists, estimate how much manual reconciliation an operator would still have to perform. This can change the business case for automating that particular step.

Put one component in charge of retries
Find out whether the shop extension, the integration queue or the client library already performs retries. If each acts independently on the absence of its own acknowledgement, a single broken connection can cause several attempts at different times. Identify the component that counts attempts, the location of the stable operation reference and the point at which the case is handed to a person. Other components can record observations. An operator on the night shift then knows exactly where a repeat delivery can be initiated.
Take the business deadline into account. A retry that succeeds after the warehouse closes may still miss the day's carrier collection. Agree when to stop waiting for automatic recovery and who will explain the revised delivery options to the customer. There is no sensible universal number of attempts for every connection. Rereading a status and requesting a new shipping label have different consequences. The Microsoft guidance on retries covers delays and the distinction between temporary faults and failures that need another response.
Identify completed steps before reversing anything
Imagine that stock was reserved but the carrier did not return a label number. First establish whether a shipment was nevertheless created at the carrier. If it was, retrieving the existing label might be all that remains. If it was not, and resubmission is safe, repeat only that step. Sending the entire order again could reserve the stock twice. This is where keeping a separate external reference for each completed operation pays off.
Releasing stock is itself a business operation. Establish which reservation belongs to O-417, whether a picker has already started and how other orders have affected availability. Restoring yesterday's total might erase movements made this morning. Describe how to release this one reservation and how to confirm that the release was accepted. An order already packed may call for entirely different handling. A reversal can also be interrupted, so its outcome must be discoverable. Microsoft's discussion of compensating transactions explains the underlying problem.
Resolve changes that arrive out of order
After paying, the buyer asks to cancel. The integration receives the cancellation first and a delayed copy of the original order afterwards. A rule that always applies the most recently received message might revive a cancelled purchase. Find out whether the source provides a document version, an event sequence or an enquiry for the order currently in force. A workstation clock or the time a file was copied does not, by itself, establish the business order of those events.
Where the evidence is insufficient, show both changes to the operator and hold picking until a decision is recorded. The operator needs to see whether the warehouse has already packed the parcel and whether the cancellation applies to the whole order or just one item. The closing note should identify which version prevailed and what happened to the earlier one. Deliver the stale event again in a test and check that the closed order stays closed. Also repeat the enquiry after restarting processing to check that the decision survived.

Give operators a decision they are authorised to make
A message saying “Check error” gives a person neither a question nor a meaningful choice. A more useful task for O-417 might read: “Two ERP documents have this shop reference. Both show reservations. Identify the document handed to the warehouse and give the other reference to the warehouse supervisor.” Someone who has permission to compare records does not automatically need permission to cancel a reservation. Preparing a decision and authorising it can belong to different roles.
The next shift needs to see the last finding and when somebody took ownership. Two people may open the same case while only one receives a new confirmation from the carrier. Before changing the delivery plan or releasing stock, reread the current state. If it has changed, show the new evidence so that the operator can reconsider the proposed action. A test with two operator sessions and one synthetic order is enough to expose a surprisingly consequential difference between a current record and yesterday's screen.
Investigators often need only an order reference, the type of operation, its version and the receiver's document number. They rarely need a full delivery address or payment details in each service desk message. Agree where the detailed record belongs, who may open it and when company policy calls for its deletion. Put only the information needed to locate the case in the shared summary. Use fictitious records for acceptance screenshots and examine downloadable files, where additional columns can easily escape notice.
During acceptance, inspect the result in the receiving system
Start with one valid order and record the expected state in each system. Change one condition at a time. When the same message is delivered twice, count the ERP documents and warehouse tasks. When receipt of a response is interrupted after document creation, see whether the integration can find that very document. When a required field is empty, check that the operator is told which value needs a correction and that unrelated orders are still processed. Each test answers a distinct question about readiness.
Add two less obvious tests. Restart the integration after a warehouse acknowledgement arrives but before the next step completes. Compare the reservation after recovery with its previous state. Then cancel an order while it is under manual review. See whether the operator can still click an old action to submit the previous version. Retain evidence from the system in which the consequences would be visible. A green message on the sender's screen cannot establish what quantity the warehouse has actually reserved.
Write the exception record in language the next shift can use
Before signing off the specification, read a case record with someone who would have to act on it during an evening shift. “Order created” may mean payment has been acknowledged to the shop operator, while the warehouse manager interprets it as permission to begin picking. Pair a named event with an object and its system. “ERP saved the sales document” answers a different question from “Warehouse accepted the picking task”. Both expressions work on a support screen and in the history of the case.
Ask the incoming operator to locate the referenced document without other instruction. Where a link opens only a general search page, supply the search key and source name. If only accounting is entitled to see the record, tell the operator which role to contact and what question to ask. An instruction to “look in the system” is of little use to a person without access to it. A rehearsal of a shift handover is an inexpensive place to discover the gap.
Handle a group of delayed orders without losing individual cases
Single-order handling does not explain how to notice a common cause. If all new items from one sales channel suddenly stop importing, yesterday's change in catalogue code format is worth investigating. Group the investigation while retaining each order's identity and state. The catalogue owner can compare one valid old code with a new one. Once the mapping is repaired, return only the selected, eligible records to processing. An order cancelled by its customer or completed by hand in the meantime must stay out of that batch.
Queue age may matter more than the number of items waiting. An item needed for the final collection can deserve attention before several routine deliveries for tomorrow. Make the next external deadline visible and document how operators sort their work. Test with both a newly arrived urgent case and an older routine one. The operator should be able to handle the urgent case without making the older one disappear. Include cases with no assigned owner in the view at the end of the shift.
Ask the supplier to demonstrate one verifiable outcome
Instead of requesting “fully automated error handling”, give the supplier one anonymised order, its initial state and the expected outcome after interruption. Ask where the source reference is stored, how a document can be retrieved with it and under which conditions that enquiry might be incomplete. Agree who provides the test account and who will be able to release any stock reserved for the exercise. A demonstration with this scope can be understood and assessed by an operational colleague as well as a developer.
Separate what the supplier showed in the product version you use from what they offered to build later. A once-daily export means planning reconciliation at the frequency that is available today. A future real-time status enquiry would be a change with its own acceptance test. Check whether the demonstrated feature works through your file importer as well as through the online interface. Finally, ask a colleague who missed the meeting to follow the notes. If the check succeeds only with the supplier's administrator account, ordinary operations still lack a workable procedure.
End the pilot by reconciling orders, time and outstanding cases
At the end of the day, select orders using the same source boundary on both sides. A lost order and a duplicate can cancel each other out in a simple row count. Match references first, then compare version, lines and state for each discrepancy. Keep orders close to the time boundary on a separate list so that tomorrow's comparison can pick them up. A controlled export can serve during the pilot if the product has no suitable report. Record how long the exercise took and who examined the differences.
Include time transferred to exception handling when assessing the benefits of the automation. Observe how much time people spend searching, correcting data, waiting for a decision and contacting the customer. Elapsed waiting and active staff minutes belong in separate columns. A case opened in the morning and closed in the afternoon may require just two brief interventions. The guide to measuring the time actually saved by automation develops that calculation.
A process owner can decide whether to expand the pilot once the outstanding cases, their possible consequences and the people responsible are visible. If the team still cannot distinguish a saved order from an unsaved one, restrict that specific write operation and agree on a verifiable reference with the ERP supplier. If uncertainty concerns a handful of products, the pilot can proceed with the catalogue that has been agreed. The decision now has a defined scope, and everybody knows which step to revisit once the missing capability is in place.