✏️Prompts

AI for Vendor Master Data Clean-Up Before an ERP Move

How to use AI to find duplicate and dormant vendors in your accounting system, and the clean-up plan to finish before you migrate.

Vendor file folders being sorted with duplicates set aside next to a laptop

Most vendor files don't get messy through carelessness. They get messy one urgent payment at a time: "ABC Supply", "A.B.C. Supply Inc" and "ABC Supply - Branch 4" all set up by different people over eight years. Moving that list into a new ERP carries every duplicate across, along with the duplicate payments and 1099 errors they cause. AI is good at the first pass, finding likely duplicates and dormant records in an export. Deciding which record survives, and anything touching bank details, stays with people.

Why this is worth a day before cut-over

Duplicate vendors are a control problem as well as a tidiness problem. The same invoice can be paid twice when it is entered against two records, and a dormant vendor with old bank details is an easy target. In the 2026 AFP Payments Fraud and Control Survey, 76% of US organizations reported attempted or actual payments fraud in 2025, and 74% were affected by business email compromise. The survey notes that fraudsters mainly impersonate vendors or executives to request changes to payment instructions. A smaller, cleaner vendor list gives them fewer records to exploit.

The workflow

Before you start

Vendor records hold tax IDs, bank account numbers and, for sole proprietors, Social Security numbers. Remove those columns before the file goes anywhere near an AI tool. Replace them with "TIN on file: Yes/No" and "Bank details on file: Yes/No". Use a business plan or the AI built into your accounting system, not a personal account.

  1. Export the vendor list and payment history. From the vendor master: vendor ID, name, address line 1, city, postcode, phone, email domain, payment terms, 1099 flag, status, created date, and the two Yes/No columns above. From AP: total paid and last payment date per vendor for the past three years.
  2. Ask AI to find likely duplicates.
    Prompt
    Attached are our vendor master export and a summary of payments by vendor ID for the last three years. Find groups of vendor records that are probably the same supplier. Treat names as matching if they differ only by punctuation, capitalization, legal suffix (Inc, LLC, Ltd, Co), "The", or a branch or location suffix. Also group records that share an address line 1 and postcode, a phone number, or an email domain that is not a public mail service. For each group, list every vendor ID with name, status, created date, total paid and last payment date, and give a one-line reason for the match. Rank groups by combined amount paid, largest first. Do not merge, rename or recommend deleting anything. Put any group you are less than sure about in a separate list called "Possible duplicates".
  3. Ask AI to sort the rest of the file.
    Prompt
    Using the same files, put every vendor not in a duplicate group into one of these lists: "Active" (paid in the last 18 months), "Dormant" (no payment in 18 months but paid before), "Never paid" (no payments at all), and "Incomplete" (missing payment terms, 1099 flag or TIN on file). Show counts for each list and the total paid in the last three years for each, so I can check the totals against the AP payment report.
  4. Review the duplicate groups. A sample of what comes back from a distributor's file:
    GroupVendor IDsReasonPaid, 3 yearsDecision
    1V1043, V2210, V3307Names differ by suffix and punctuation; same postcode$412,800Keep V1043; block the others
    2V0877, V2954Same phone; second record created with a new remit-to address$96,300Check: is the new address a real branch?
    3V1530, V1531Created one day apart, same email domain$18,450Keep V1530; move open bills first
  5. Decide the surviving record and block, don't delete. Pick the record with the right legal name and a current W-9. Move open bills and open POs to it, then block or inactivate the others so history stays intact for the audit trail.
  6. Tie out. Counts across Active, Dormant, Never paid, Incomplete and the duplicate groups should equal the total number of vendor records. Total paid across all lists should equal the AP payment report for the same period.

What to migrate

ListMigrate?Check first
ActiveYesLegal name matches the W-9; terms and 1099 flag filled in
Surviving duplicate recordYesOpen bills and POs moved across from the blocked records
DormantUsually noKeep history in the old system or an archive; re-create on request with a fresh W-9 and verified bank details
Never paidNoConfirm no open POs
IncompleteOnly once fixedRequest missing documents before cut-over, not after

Where this breaks

Where this breaks

Real branches look like duplicates. A supplier may invoice from two legal entities or remit to a separate lockbox. AI cannot tell a genuine second entity from a duplicate. Purchasing or AP confirms each group.

Bank details are never merged by AI. If two records in a group have different bank details on file, verify the correct one by calling the vendor on a phone number already in your records, not one from an email or invoice. Two people should approve any bank detail kept on the surviving record.

Name matching misses some pairs. "Johnson Industrial" and "JI Supply" may be the same company. Scan your top 50 vendors by spend by hand.

Totals need checking. Recalculate any total you plan to rely on from the AP report. AI arithmetic on large files is a starting point.

Tax questions go to your adviser. If the clean-up turns up vendors with missing W-9s who should have received a 1099, talk to your tax adviser about what to correct.

For the year-end side of vendor data, see AI for 1099 season. For the payment controls that sit on top of a clean vendor list, see AI for accounts payable.

Free migration guide

The ERP Data Migration Planning Guide

A practical plan for moving master data, history and open transactions into a new ERP without breaking go-live.

Related Articles