← All notes

An error nobody understands always comes back

The operator uploads a file of orders, clicks “Send”, and a few seconds later a dialog appears: a code, a message class, a technical text badly translated by the central business system. They take a screenshot, send it to support and move on. Half an hour later a developer opens the logs and finds that the problem was a wrong customer code on one line of the file. The fix: ten seconds. The real cost: two people, two interruptions, an order stuck for half a day.

The message decides who fixes the problem

An error is not just information, it is an assignment. If the message speaks the system’s language, the only person who can act is someone who knows the system. If it speaks the language of the process — “the contract you referenced does not exist for this customer”, “line 30 is already closed” — the operator fixes it and tries again.

In almost every ERP integration, most errors fall into a few recurring families: missing or blocked master data, closed reference documents, quantities or dates outside the rules, missing authorisations. They are data errors, not software errors. Routing them to technical support means using the most expensive person for the least technical job.

Translation is a piece of architecture, not of the UI

The temptation is to fix the wording on the screen. That works for a month. Translation should instead be treated as a component: a layer that receives the raw error from the business system, recognises it, and returns three distinct things.

  • What happened, in process terms, with the references the user sees in their own file: the line, the code, the document.
  • What they can do, if anything. If nothing, say so explicitly and say who to contact.
  • The original detail, kept intact for whoever has to investigate. Translating does not mean hiding: the raw code stays in the log and one click away.

And one rule that matters more than the others: an error the translator does not recognise must never be softened. It is shown as an “unexpected error”, with the full detail. A reassuring message on an unknown error is worse than an incomprehensible code.

Better still: don’t get there

Many of those errors can be caught before anything is written to the business system. A read-only preflight check — does the customer exist? is the contract open? does the line still accept postings? — turns a failure halfway through processing into a list of corrections presented before anything starts. No partial writes to clean up, no orphaned documents.

The check must fail closed, though: if it cannot verify, it does not give the go-ahead. A check that lets things through when in doubt is just a delay.

Where the return shows up

Not in lines of code, but in the support requests that stop arriving. It is one of the few changes to an existing integration that does not touch business logic, does not require stopping anything, and pays for itself in a few weeks: every error the operator resolves alone is one interruption fewer for the people who should be building something else.

Let’s talk