Define a successful write
Technical success may mean acceptance into an ERP queue, creation of a document header or completed validation of every line. These events have different consequences. The process owner must identify the state permitting the next step, such as sending confirmation to a customer.
Separate local tracking from destination state. An integration register can distinguish prepared, submitted, confirmed, rejected and reconciliation-required operations. A completed status inferred only from the absence of an HTTP-library or RPA exception should not close the business case.
Give the operation an identity that survives retries
Prefer a business key the ERP accepts as a unique external reference. Repeating the same intention should preserve that identity. A new data version may need a new operation linked to its predecessor. Do not confuse a network-attempt identifier with the identity of the business commitment.
If the ERP does not enforce uniqueness, establish a read-and-reconcile path before repeating a write. A local marker alone cannot prevent duplication after a lost response. For expensive errors, an explicitly managed reconciliation queue with operator involvement may be safer than automatic resubmission.
An uncertain-outcome example
In an illustrative scenario, AI prepares an order from a customer message and an employee approves it. The integration submits the document but times out. Instead of automatically resubmitting, the task enters reconciliation. A reconciliation process searches for the external reference and compares lines, currency and approval version.
Finding a document number is insufficient if only some lines committed. The control must distinguish an equivalent result from a partially created document needing correction. If read-back is also unavailable, the outcome remains uncertain. The interface should preserve that uncertainty rather than replacing it with a reassuring success status.
Controls across the system boundary
| Problem | Design question |
|---|---|
| Partial document | How are missing lines detected and repaired? |
| Changed price | Which version received approval? |
| Retry after timeout | Does the ERP recognise the same operation? |
| Revoked permission | Is execution still authorised now? |
Do not allow the model to invent product, unit or rate mappings. Mappings need a controlled source and a version. AI may propose a match, but the write should pass deterministic checks against the catalogue and business policy.
Accept the recovery path, not only the happy path
Test response loss after a real write, partial validation and data changing between approval and execution. Operators should be able to trace the operation without broad access to customer correspondence. Every manual resubmission decision needs its author, scope and rationale recorded.
Measure uncertain outcomes, reconciliation time and the age of documents awaiting correction. These describe operating cost better than endpoint availability alone. Before scaling, establish who owns contract changes following an ERP upgrade and how representative test cases will be maintained.
The commercial promise should match those capabilities. If safe completion cannot be established for a class of documents, keep it in assisted preparation until a reliable execution boundary exists.
Give reconciliation its own decision rules
Do not reconcile by searching for a similar customer name. Use stable references and equivalence criteria agreed with the process owner. Differences in amounts, units or line counts should block automatic closure and expose the actual discrepancy.
A missing read result does not always establish that no write happened when the ERP's read view is delayed. Define a waiting and recheck policy rather than multiplying write commands. Test that delay explicitly. Correction also needs approval rules: deleting and recreating documents may affect numbering and downstream records. Establish the permitted business procedure before shipping exception handling.
Exercise a human changing the ERP document during reconciliation. Its reference may remain present after cancellation or correction. Record existence alone should not authorise the next step; state and version comparison must also respect decisions made outside automation.
If the ERP exposes no reliable object version, document the guarantee's limits and the required operator role. An explicit procedure for ambiguous cases is preferable to claiming full automation while assuming nobody changes data at an inconvenient moment. That assumption belongs in acceptance testing rather than remaining hidden in integration code.
Connect AI and ERP with Geekforce
We build workflows that connect AI with existing systems while keeping exceptions visible and manageable. Let's examine writes, confirmations and recovery requirements in your business process.


