Skip to content

ERP master data cleanup: customer, supplier and item records kept in order by an AI Worker

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

An AI Worker cleans up ERP master data by looking for five types of errors: duplicate customers and suppliers, duplicate items, empty mandatory fields (tax ID, unit, weight), inconsistent data and bank accounts that do not appear on the Polish VAT taxpayer register. Every week it delivers a list of errors with ready fixes, and it drafts new records from department requests. Merging duplicates, changing data and changing a supplier's bank account are approved by a person, because in an ERP these operations often cannot be undone.

Where the mess comes from

Master data decays slowly. A salesperson creates a customer in a hurry because an order is waiting. The warehouse adds an item with the supplier's name for it because it could not find the existing one. After a migration from the previous system, records marked "OLD" remain. Nobody owns the master data, so nobody cleans it up.

The effects show up far from where the error was made. The same customer under two numbers has two credit limits and two payment histories. An item without a weight breaks the freight calculation. An order from an email does not land on the right item because there are three similar ones. That is why clean master data is a precondition for many other automations, as described in Company data for AI Workers.

Five types of errors and how to spot them

ErrorExampleHow to find it
duplicate customer or supplier"ABC Sp. z o.o." and the same company with its legal form spelled out in full, same tax IDsame tax ID, a similar name after normalizing abbreviations, same address
duplicate item"Bolt M8x40 zinc" and "BOLT M8 40 ZN"same EAN barcode, similar description, same supplier and purchase price
empty mandatory fieldan item without a weight, a customer without a tax IDa rule per field, separately for each group of records
inconsistent dataunit "pcs" in sales and "pack" in purchasing without a conversion factorcomparing fields across ERP modules
account not on the registera supplier's bank account that is not on the whitelista query to the VAT taxpayer register for the tax ID and account number

A duplicate is rarely identical. The AI Worker compares meaning, not just characters: it knows that an abbreviated legal form and the full one are the same, that "M8x40" and "M8 40" are the same size, and that "5 Polna St." and "5 Polna St., unit 2" may be a different address. For each pair it states why it considers it a duplicate and how confident it is. Uncertain pairs go on a separate list.

The VAT whitelist and the supplier's bank account

The bank account in a supplier record is the field that payments depend on. The register of VAT taxpayers, known in Poland as the whitelist (biała lista), is kept by the Head of the National Revenue Administration under Article 96b of the Polish VAT Act. For invoices issued before 1 January 2027, a payment for a transaction above 15,000 PLN to an account outside the register may not count as a tax-deductible cost (Article 15d of the Polish Corporate Income Tax Act). The act of 18 September 2026 (Journal of Laws 2026, item 1371) removes this sanction for invoices issued from 2027, but checking the account still makes sense: a change of bank account in an email from a "supplier" is a common fraud attempt, described in The "change of bank account" scam.

The AI Worker checks every account in supplier records against the register, and it does so immediately whenever an account changes. It never enters an account change itself: it prepares a request with the result of the check, and a finance person makes the decision, ideally after calling the supplier on the number from the contract. The check right before a payment is covered in The VAT whitelist and the supplier's account.

How the ERP master data keeper works

The ERP master data keeper reads customer, supplier and item records, requests for new records from email, and the VAT taxpayer register. It works on two rhythms.

Every week it goes through the master data:

  1. It looks for pairs of duplicates and rates how confident the match is.
  2. It checks mandatory fields against the rules for each group (different for raw materials and for finished goods).
  3. It compares data across modules: sales, purchasing, warehouse.
  4. It checks supplier accounts against the register.
  5. It delivers a list of errors with a ready fix for each: which record stays, what to move, which field to fill and where the value came from.

As requests come in, it handles them for the departments. When a salesperson asks for a new customer, the AI Worker first checks whether the customer already exists. If not, it drafts the record with data from the request and from the VAT taxpayer register. The person responsible for master data creates it.

Merging: why a person decides

Merging two records in an ERP is more than deleting one. Each record has documents, open balances, customer-specific prices and order history attached. In many ERP systems a merge cannot be undone, or undoing it requires an administrator's work. That is why the AI Worker only prepares the merge: it shows how many documents each record has, which one has open balances and which fields differ. A person picks the surviving record and runs the merge.

The same applies to data changes. The AI Worker has read rights and the right to create drafts in the ERP, not write rights to the master data. This permission setup is described in AI Workers and ERP.

Where to start

The best place to start is customers, suppliers and items that had activity in the last twelve months. Old records with no documents can be blocked by a separate decision, without merging. At the start it is worth measuring three numbers: how many duplicate pairs there are, how many records have empty mandatory fields and how many supplier accounts fail the register check. A few weeks later the same numbers show whether the order is holding. The wider context, meaning data owners and rules for which record wins, is covered in Master data management (MDM).

Questions and answers

Does the AI Worker delete or merge duplicates in the ERP on its own?

No. It prepares the merge with a description of how many documents and open balances each record has, and the person responsible for master data makes the decision and runs the operation. In many ERP systems a merge is irreversible, so it stays with a human.

How many duplicates does a typical company have?

It depends on how many people create records and whether the company has been through a migration. Rather than guessing, count it on an export: a first run on a copy of the master data shows the number of pairs, split into certain and doubtful, before anyone touches the ERP.

Will this work with an older ERP that has no API?

Yes. An export of the master data to a file is enough to start, and fixes can come back as a list to enter or an import file the system accepts. An API connection speeds things up, but it is not a requirement.

Who is responsible for master data quality after the deployment?

The same person as before: the data owner in the company. The AI Worker does not take over responsibility, it shortens the path to a decision: it finds the error, gathers evidence and proposes a fix. If your company has no master data owner, the deployment is a good moment to name one.

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 →