Does Business Central stop duplicate supplier invoices?
Business Central has a duplicate check for supplier invoices, but it is exact and narrow. This is how it works according to the source code.
The short answer
Partly. Business Central blocks posting when the same vendor already has a posted, unreversed entry with the same document type and exactly the same external document number (the vendor's invoice number). A number written slightly differently, a duplicate vendor card or two unposted documents with the same number all get through.
What Business Central checks
The check runs at posting, in codeunit Gen. Jnl.-Post Line (procedure CheckPurchExtDocNo) and the matching step in Purch.-Post, when Ext. Doc. No. Mandatory is on in Purchases & Payables Setup, or when the external document number (Vendor Invoice No. on the purchase invoice) is filled in. Posting is blocked with the error "Purchase Invoice 4865336 already exists for this vendor." when a vendor ledger entry already exists with:
- the same vendor number,
- the same document type, for example invoice,
- exactly the same external document number,
- and is not reversed.
When the vendor's invoice number is entered on a purchase document, the same search runs against posted entries, and a match shows a notification. It is a warning only, and each user can turn it off in My Settings.
Microsoft Learn says Business Central doesn't check whether external document numbers are unique. As a general rule that holds, but the source code shows a specific check when purchases are posted. The field is of type Code, so upper and lower case count as the same. An extension in your environment can change the check, because the code has events for it.
What gets through
The examples assume invoice 4865336 is already posted for the vendor.
| New invoice | Blocked? | Why |
|---|---|---|
| 4865336 | Yes | Same vendor, type and number |
| 2026-4865336 | No | Year in front of the number |
| 004865336 | No | Leading zeros |
| 4865 336 or 4865-336 | No | Space or hyphen in the number |
| F4865336 | No | Prefix in front of the number |
| 4865336 on a second vendor card | No | Different vendor number in the system |
| 4865336 when the original is reversed | No | Reversed entries are ignored |
The check also happens only at posting. Two unposted invoices with the same number can exist side by side and go to approval. How duplicates happen and what to do when an invoice has already been paid twice is covered in the guide to duplicate invoice payments.
The sales side
On the sales side there is no block. When External Document No. is filled in on a sales order or invoice, Business Central calls Customer Mgt. SearchForExternalDocNo, which looks through the same customer's open sales documents and posted invoices and credit memos. On a match it shows the notification "Sales Order 1234 already exists for this customer." It is a warning only, and each user can turn it off in My Settings, under the notification Sales document with same external document number already exists. It protects against duplicate customer orders, not against paying a vendor twice.
Fortnox and Spiris
Fortnox: the support page on incoming invoices lists a duplicate as one example of why an interpreted invoice gets the status Avviker (deviates). Fortnox's summer 2026 product news says duplicates are flagged where OCR, amount and date match. Whether manually registered invoices are checked is not stated in the documentation.
Spiris (formerly Visma eEkonomi): the help page on manual registration makes the supplier's invoice number mandatory. Whether Spiris warns about a number that already exists is not stated in the documentation.
How to close the gap
- Turn on Ext. Doc. No. Mandatory in Purchases & Payables Setup. No purchase invoice can then be posted without the vendor's number, and the check runs every time.
- Enter the number one way only. Exactly as it appears on the invoice, with no prefixes, years or spaces of your own.
- Clean up duplicate vendor cards. The same organisation number or bankgiro on two cards hides the duplicate from the check. The supplier register check finds duplicate vendors in an export of the register.
- Check what is already posted. Export the vendor ledger and run the duplicate invoice check, which finds almost identical numbers, the same amount close in time and the same OCR reference. All tools are on Free tools, and the file never leaves your computer.
- Automate the check before approval. In the invoice pilot every new invoice is checked against earlier invoices, the supplier register, bankgiro, VAT and purchase order before it reaches approval. Deviations are stopped and sent to a person.
In our published test run with 1 000 fictional invoices, 100 of 100 planted errors were stopped, including duplicates where the number had gained a year prefix, leading zeros or a new format; this is fictional data, not a customer result.
Read also: Does Fortnox stop duplicate supplier invoices?
Wondering how your invoices would do in the check? Send three invoices and you will get an assessment within two working days, free of charge.
Frequently asked questions
Does Business Central block the same invoice number twice?
Yes, if the vendor, document type and external document number are exactly the same and the earlier entry is posted and not reversed.
Does upper or lower case matter?
No. The field is of type Code and stored in upper case, so INV42 and inv42 match, but INV 42 and INV42 do not.
Does Business Central warn before the invoice is posted?
Yes, when the number is entered on a purchase document and the same vendor already has a posted entry with it. Each user can turn the notification off, and it ignores unposted documents.
Is it enough to turn on Ext. Doc. No. Mandatory?
No. The check then always runs, but the comparison is still exact. A number with a year, zeros or a prefix gets through.
Sources
- Business Central source code, version 29 (2026 release wave 2), branch w1-29 of the open repository MSDyn365BC.Code.History: codeunit Gen. Jnl.-Post Line, procedure CheckPurchExtDocNo; codeunit Purch.-Post, procedure CheckExternalDocumentNumber; codeunit Vendor Mgt., procedure SetFilterForExternalDocNo; table Purchase Header, field Vendor Invoice No.; table Sales Header and codeunit Customer Mgt., procedure SearchForExternalDocNo: https://github.com/StefanMaron/MSDyn365BC.Code.History/tree/w1-29
- Microsoft Learn, Enter external document numbers: https://learn.microsoft.com/en-us/dynamics365/business-central/across-enter-external-document-numbers
- Microsoft Learn, External document numbers on purchase documents: https://learn.microsoft.com/en-us/dynamics365/business-central/purchasing-ext-doc-no
- Fortnox, Inkomna fakturor på webben (Swedish): https://support.fortnox.se/produkthjalp/bokforing/inkomna-fakturor
- Fortnox, Produktnyheter sommaren 2026 (Swedish): https://www.fortnox.se/produktnyheter/produktnyheter-sommaren-2026
- Spiris, Registrera leverantörsfaktura manuellt (Swedish): https://support.spiris.se/bokforing-fakturering/sv-se/content/online-help/purchasing-purchase-invoice-register.htm
- Spiris, Ta emot leverantörsfakturor (Swedish): https://www.spiris.se/support/bokforing-fakturering/ta-emot-e-fakturor
Source code read and pages retrieved 2 November 2026.