1. Define the disruption scenario precisely
The statement “The MES can operate offline” is too vague to support a selection decision. If only the connection to the ERP fails, the MES, machine data collection and operator workstations may remain available. A failure of the MES database or the connection between the plant and a central MES is a different disruption scenario. Each case requires different buffers, operator functions and recovery procedures. This article considers an available MES with disrupted ERP communication.
Even within this scope, technical availability must be distinguished from business transaction processing. An interface may accept messages while ERP posting is blocked. Successful transmission then says nothing about whether a quantity confirmation, material consumption posting or order completion has actually taken effect. The MES must recognise these intermediate states and keep them visible.
The requirements catalogue should therefore not simply state “production capability during an ERP outage”. It needs a list of specific activities: Which operations already in progress may continue? May orders already transferred to the MES be started? Which releases require a current ERP response? Only then can a testable boundary be established between permitted continued operation and a deliberate halt.
2. Continue working only with sufficient valid data
An order held locally is not automatically ready for execution. The MES also needs the routing versions, material assignments, inspection requirements and releases relevant to the process. The data that must be held in the MES therefore depends on the planned scope of continued operation, not just on the scope of the interface implemented so far. It must remain clear which data version was used for execution.
Changes made in the ERP or another system of record during the interruption are particularly critical. A new order block may not reach the MES in time. Better buffering cannot resolve this conflict. The business must determine which decisions may be made on the basis of the last known state, and for which materials, orders or process steps the absence of an up-to-date confirmation requires a stop.
Where possible, these rules should be enforced in the system rather than documented solely in a work instruction. Operators need a clear indication of restricted operation and the functions available. Permitted exceptions must be authorised, justified and logged. Time limits alone are not enough: even recently synchronised data may already be unsuitable if a critical block has been imposed in the meantime.
- Explicitly identify the activities permitted when the ERP connection is interrupted.
- Specify the required order data, master data and release data, including version references.
- Define critical blocks and fallback procedures when the connection is unavailable.
- Control exceptions through assigned roles, documented reasons and an auditable log.
3. Store confirmations persistently and prevent duplicate postings
A typical problem arises when the ERP posts a material consumption message but the acknowledgement sent back to the MES is lost. From the MES perspective, the status remains unclear. Resending risks a duplicate posting; not resending could leave a message missing under a different failure scenario. The solution is not to rule out retries, but to make repeated transmission safe for business transaction processing.
Each confirmation therefore needs a persistent, unique identifier that remains unchanged across delivery retries. The receiving process must recognise whether the associated business transaction has already been posted. This check and the posting must be protected as a single operation so that even parallel delivery attempts cannot create duplicates. Duplicate checking solely on the integration server is insufficient if another uncertain state can arise between processing on that server and posting in the ERP.
The sending side is equally important: creating a relevant MES confirmation and adding it to the persistent outgoing queue must not be separate, uncoordinated actions. A transactional outgoing buffer, often called an outbox, is one possible pattern. What matters is demonstrable behaviour: after a restart, every confirmed data capture must either be ready for transmission or have a traceable record of completed processing. A volatile in-memory buffer does not meet this requirement.
4. Explicitly define processing order and correction rules
Persistent storage does not, by itself, prevent incorrect business processing. An order completion message may, for example, arrive before an associated material consumption message if messages take different transmission routes or are retried independently. Dependencies between transactions must therefore be defined in business terms. A single sequence for all messages is not always necessary; ordered processing within an order or operation is often sufficient.
Timestamps alone are not a reliable substitute. Differences between system clocks and delayed transmission can make interpretation difficult. Depending on the interface design, sequence numbers, version identifiers or explicit references to prerequisite transactions can help. The recipient must be able to determine whether a message can be processed immediately, must wait for a preceding message or contains a business conflict.
Corrections also need an unambiguous meaning. A quantity changed retrospectively must not be mistaken for an additional quantity. The interface must define whether it transmits individual events, quantity changes or cumulative totals, and how reversals relate to replacement postings. Confirmations already transmitted should not be overwritten silently. A traceable correction keeps the original posting distinguishable from its amendment.
5. Treat recovery as a controlled operational process
Once the ERP is available again, the backlog should not simply be transmitted at maximum speed without checks. Downstream processing, locks and new live messages can interfere with one another. The recovery procedure therefore needs controllable transmission rates and priorities based on business rules. Dependent transactions must not be moved ahead merely because they appear urgent in day-to-day operations.
Technical errors and rejections caused by business rules require different handling. A temporary connection error may justify another delivery attempt. By contrast, repeatedly resending a material assignment that has become invalid will not make it valid. Such messages need a clearly identifiable exception queue with the reason for the error, an assigned owner and a defined process for further handling. They must neither disappear nor unnecessarily block the entire message flow.
Recovery is complete only when business transaction results have been reconciled. This includes both individual message identifiers and ERP posting references, as well as appropriate order-level checks. Quantity totals alone are insufficient because missing and duplicate postings can cancel each other out mathematically. Unresolved cases must remain documented. An empty outgoing buffer is not evidence of a fully consistent state.
- Monitor buffer utilisation and the age of the oldest pending message.
- Distinguish between transmitted messages, completed business transactions, rejected messages and unresolved messages.
- Assign roles responsible for investigating errors and reprocessing messages.
- Confirm completion of recovery through a documented reconciliation.
6. Turn requirements into robust acceptance tests
During MES selection, a demonstration with the network connection interrupted is a useful starting point, but not sufficient evidence. Deliberately triggering errors at different stages of processing provides more meaningful results. Vendors and implementation partners should be able to show which system states arise, where messages are stored persistently and how the business transaction results can subsequently be verified.
The test load should be derived from actual production reporting processes, expected peak volumes and the agreed period of operation without an ERP connection. Testing must cover not only storage requirements and transmission time, but also usability while a backlog exists and behaviour when the buffer is nearly full. A persistent queue is also no substitute for backups: damage to or loss of its storage requires a separate recovery plan.
Deliverables for acceptance should include a test report, traceable posting evidence and an operational manual that can be followed in practice. The associated effort and costs must also be visible during selection: interface development, additional storage and integration components, monitoring, error investigation and repeat testing after changes. What matters is not whether a product makes a general promise of “robust integration”, but whether the specific combination of systems within the company's own process can handle the agreed failure scenarios.
- Disconnect the ERP while confirmations are being generated and check that MES behaviour remains within the permitted limits.
- Suppress an acknowledgement after a successful ERP posting and demonstrate that redelivery results in exactly one business transaction posting.
- Restart the MES or integration service with a populated buffer and check that all pending messages are still present.
- Trigger a rejection based on business rules and out-of-order delivery, then verify that both are handled as defined.
- Clear the backlog while production continues, then reconcile individual messages and order results.