Skip to content

EDI orders from retail chains and supplier portals: what an AI Worker takes over

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

In EDI order handling, an AI Worker does not replace the EDI platform or its mapping. It watches what passes through them. It checks the status of every message, catches orders and despatch advices rejected by the retailer, compares each message with ERP data and describes the cause of the error with a ready fix. Orders from supplier portals, downloaded as files, go into the ERP the same way as orders from email. Resending a message, changing the mapping and writing to the retailer wait for a person.

What an order from a retail chain looks like

Retail chains and large wholesalers order from suppliers in two ways. Many exchange EDI messages in the EANCOM standard, a subset of UN/EDIFACT maintained by GS1. Some publish orders in a browser-based supplier portal, where they are downloaded as a file or retyped.

With EDI, one order is a chain of messages, and any of them can fail:

EANCOM messageWhat it meansTypical error on the supplier side
ORDERSthe retailer's purchase orderunknown GLN for the delivery location, an EAN that is not in the ERP item master
ORDRSPorder responseno reply in time, quantities that do not match stock
DESADVdespatch advicepallet SSCC does not match the label, missing lines, wrong delivery date
RECADVreceiving advicequantity difference between the despatch advice and goods received at the retailer's warehouse
INVOICinvoiceprice differs from the order, retailer's order number missing

Message types and transport (AS2, SFTP, VAN networks) are covered in EDI integration with trading partners. This article is about what happens after the integration goes live, when dozens of messages arrive every day.

Where the time goes

The EDI platform passes messages on, but it does not say why something does not match. Every morning, the person responsible for EDI in sales or IT does the same thing:

  1. goes through the list of messages rejected by the retailer or by the company's own ERP,
  2. opens a message and looks for the wrong field,
  3. compares it with the customer record, item code and price list in the ERP,
  4. works out whether the error lies in the data, the mapping or on the retailer's side,
  5. fixes it and resends, or writes to the retailer.

Each step is simple, but together they take hours, and a rejected DESADV or INVOIC can hold up goods receipt or payment. With several retailers, each with its own EDI implementation guide, the EDI person has to remember every partner's exceptions.

What the AI Worker takes over in EDI

The EDI operator from the DYNAMINDS Labs catalog reads the EDI platform, the ERP and the partners' EDI implementation guides. Every morning it delivers a list of failed messages laid out like this:

MessageCauseProposed fixWaits for
ORDERS from a retailer, store 214the store's GLN is not in the ERPadd the GLN to the customer's delivery locationschange to the customer record
DESADV to a retailerdelivery date outside the window in the ordercorrected despatch advice with the date from ORDERSresending
INVOIC to a retailerprice on line 3 is higher than in ORDERSprice correction per the order, or a message to the retailersales decision
ORDERS from a wholesalerEAN of a substitute product missing in the ERPlink the EAN to an item codemapping change

It does four things on its own: checks the status of each message, catches messages rejected by the partner, compares each message with ERP data and describes the cause with a fix. It resends nothing and does not change the mapping. Resending, changing the EDI mapping and messages to the trading partner wait for approval.

The value is not in how fast a single fix is made. It is in the fact that no rejected message sits unnoticed until the retailer calls asking about a missing despatch advice.

Orders from supplier portals

A supplier portal is a website where the retailer publishes orders and the supplier confirms them. There is no EDI message here, so the EDI operator has nothing to watch. A portal order usually reaches the company as a downloadable file or an email notification with an attachment.

Such a file is handled like an order in PDF or a spreadsheet: the Order entry operator reads the lines, maps the retailer's codes to the company's item codes, checks prices against the price list and availability, and creates a draft order in the ERP with a list of discrepancies. This flow is described in Orders in PDF and Excel. Confirming the order in the portal itself stays with a person.

Where to start

For a pilot, two or three months of messages from the EDI platform are enough, together with information on which of them needed a fix and what it was. Add the retailers' EDI implementation guides and an export of customers, delivery locations and items from the ERP. This data shows whether the AI Worker identifies the cause of errors correctly.

Start with the message type that most often comes back with an error. Often that is DESADV or INVOIC, because they depend on warehouse and invoicing data, while the retailer's ORDERS has already been validated on its side. Order responses and delivery dates are covered in Automatic order confirmations and delivery dates. A similar architecture, with message validation at the input, appears in the project on an EDI and API integration platform for a logistics operator.

Questions and answers

Does an AI Worker replace the EDI platform or the provider that runs it?

No. The EDI platform still transmits messages, and the mapping stays in it. The AI Worker works alongside: it reads message statuses and content, compares them with the ERP and describes errors. Mapping changes are still made by the person or company that maintains the platform.

Can the AI Worker resend a corrected message by itself?

Not at the start, because a message to a retailer has consequences: a despatch advice commits a delivery, an invoice a payment. When a certain type of fix has gone through unchanged for several weeks, for example adding a missing order number to INVOIC, the company can decide to approve such fixes in batches.

What if a retailer changes its EDI implementation guide?

The new version goes into the documents the AI Worker uses. Messages from before and after the change are checked against the right version. When the change requires a different mapping, the AI Worker points out the messages that started failing, but a person changes the mapping itself.

Does this make sense with a single retail chain?

Usually only with several EDI partners or a high daily message volume. With one retailer and a few orders a week, errors can be fixed by hand. Calculate how much time your EDI person spends each week on rejected messages and compare it with the cost of deployment.

What it looks like in a project

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers

All in AI Workers →