Our first vendor consolidation procedure ran without a single error and still left some vendors showing another supplier's name. Five rehearsals across 30 legal entities later, the method we took to production consolidated master accounts first, merged parties last, and checked every transaction type it knew of against a copy of production.

Round 1 produced no technical error at all. The scripts completed, and some vendors displayed the wrong name. That failure shaped everything after it, because it proved that a run that succeeds can still produce the wrong data.

Two-part case study. This is part 2. Part 1 covers the business side: what one vendor master changed for AP.

In plain words: in D365, a vendor account points to a party, the global record that holds the name and address. Consolidating vendors means renumbering accounts so duplicates point to one survivor, and merging the parties behind them. Both operations are routine. The order you run them in isn't.

Part 2 in about three minutes: why a run with no errors still failed, and what five rounds changed. Watch it on its own page, with chapters →

A script can succeed while the data fails

The case was several vendors in one legal entity, each tied to a different party. Our first procedure merged the parties before it consolidated the vendor accounts. That left party assignments the process wasn't built to resolve, and some survivors ended up attached to the wrong party.

Comparison titled The Scripts Succeeded. The Names Were Wrong, observed in this implementation in round 1. First procedure: merge party records, then consolidate vendor accounts; result, no error, but some vendors showed another supplier's name. Procedure taken to production: consolidate master accounts first, then the non-master accounts, then merge party records last; result, each survivor keeps the right vendor and the right party.
Same operations, different order, different data.

The rule we took to production: consolidate vendor accounts first, with designated master accounts before the rest, and merge parties last. That's what we observed in this implementation and its customizations, not a sequence Microsoft prescribes for every system. The general point holds anywhere: operations that are each valid can produce wrong master data in the wrong order.

Where the standard tools stop

D365 has the two building blocks. In the global address book, Merge records combines party records, and you choose the party to keep.

D365 Finance and Operations global address book in demo data, with two party records for A. Datum Corporation selected and the Merge party records pane open, asking to select the party to retain and give a reason. Merge records is highlighted in the Maintain group of the Party tab.
Merge party records in the global address book, in Contoso demo data.

And on any vendor, Options, then Record info, offers Rename, which changes the account number and updates every reference to it.

D365 All vendors list in demo data with vendor 1001 selected and the Record information pane open: Rename the unique record key; this action is time consuming because all references will be updated too. The Options tab, Record info and Rename are highlighted.
Record info, then Rename, on a vendor account, in Contoso demo data.

Neither covered our full case on its own: many vendors in the same legal entity collapsing into one survivor, at volume, with validation. Our developer built the consolidation procedure around these standard mechanisms, with checks matched to how they behave.

Five rounds, two teams improving at once

Grid titled Five Rounds, Two Teams Improving at Once, an approximate reconstruction, not a change log. Procedure track: round 1, party-first order gives silent wrong names, switch to vendor-first; round 2, open, posted and settled transactions need their own handling; round 3, more dependent tables, staging data blocks reruns, add controlled cleanup; round 4, known technical problems largely solved, rehearse on refreshed data; round 5, final pre-production assurance. AP data track: round 1, first duplicate groups and survivors; round 2, groupings revised, survivors checked; round 3, bank and default-account gaps corrected at the source; round 4, business exceptions refined while new vendors keep arriving; round 5, zero known pre-execution issues.
Reconstructed from the project. The round boundaries are approximate.

Each round was a full rehearsal on a copy of production, and none of them repeated the one before. While we changed the procedure, the AP team changed the data: regrouping duplicates, checking survivors and fixing records at the source. New vendors kept arriving the whole time, so a clean run on last month's copy proved nothing about this month's.

Transactions were where most of the depth went. Open, posted and settled transactions each needed separate handling, along with purchase orders, invoice journals and registered invoices. Bank accounts, default accounts and company-specific financial dimensions came next. Some data entity staging records blocked reruns, so the developer added targeted cleanup to the controlled procedure. That was scoped to this process. It isn't advice to truncate staging tables in a live system.

ℹ If you read one line

Rehearse until a run on fresh production data finishes with zero known exceptions. A procedure that passed on old data hasn't passed.

Validate before, not after

Most of the validation in the final method happened before consolidation ran. In each rehearsal we compared the consolidated result with the original production copy, check by check.

Grid titled What We Compared Before Go-Live, and the One We Missed. Checked: party assignments; open transactions; posted and settled transactions; balances and aging; purchase orders; invoice journals and registered invoices; bank accounts and defaults; Invoice Capture references. Missed: financial dimension combinations, where old vendor values surfaced in Fabric and Power BI after go-live.
Eight checks passed in the final rehearsal. The ninth wasn't in the plan.

By the last rehearsal, execution started with zero known pre-consolidation issues. Zero known, which isn't the same as zero possible. The ninth box is the proof.

The system you forget finds the last issue

Invoice Capture had its own planned vendor reference updates and resynchronization, and it worked. What we hadn't planned for was where else vendor identifiers live. Shortly after go-live, Power BI reports and an AP inference process, which proposes invoice accounting from historical patterns, showed old vendor references.

Map titled The ERP Wasn't the Whole Data Landscape. D365 Finance and SCM, the source of vendors, parties, transactions and dimension combinations, connects to Invoice Capture, planned and tested, with vendor references updated and data resynchronized. A red connection marked not in the test plan leads to Fabric and OneLake, missed until go-live, with ledger data carrying old vendor values in dimension combinations, and on to two consumers: Power BI reports, which showed old vendor references, and AP inference, which proposes accounting from history. Note: the fix, in about a day, was to correct the source values in D365, trigger the Fabric resynchronization and check the Power BI output; the lesson is to put dimension combinations and every analytical consumer in the test plan.
Invoice Capture was in the plan. The financial dimension data on its way to Fabric wasn't.

The source was vendor values held in financial dimension combinations, the DimensionAttributeValueCombination data that ledger records reference. A handful of recurring patterns explained it. We corrected the source data in D365, triggered the Fabric resynchronization and checked the Power BI output, in about a day.

! Be honest about the limits

The sequence and staging behavior here were observed in one implementation with its own customizations. Review them against your build before reusing them, and don't treat a zero-exception rehearsal as proof that nothing downstream depends on the old identifiers.

What we'd repeat, and what we'd add

✓ Bottom line

The method that reaches production is rarely the one you wrote first. It's the one that survived five rounds of real data, and that you can explain, test and defend. If you're consolidating vendors across many companies, budget for the rehearsals, and map every system that stores a vendor ID before you start.

Frequently asked questions

In what order should vendors and parties be consolidated?

In this implementation, vendor accounts first, with designated master accounts before the others, and party records merged last. Merging parties first left some vendors attached to the wrong party without any error. Check the order against your own build and customizations.

Isn't the standard Rename function enough?

Rename on Record info changes one account and updates its references, and Merge records combines parties. For many vendors in the same legal entity collapsing into one survivor, at volume and with validation, we built a procedure around those mechanisms.

What should a vendor consolidation test plan include?

Party assignments, open, posted and settled transactions, balances and aging, purchase orders, invoice journals, bank accounts and defaults, every integration such as Invoice Capture, and financial dimension combinations with the analytics that read them.