Blog
What breaks invoice extraction (and how to catch it)
Vendor layouts, line items, totals, currencies and multi-page invoices cause most extraction errors. The validation checks that catch them before they reach your accounts.

Jonathan Bree
Invoice extraction rarely fails because characters were misread. It fails because the extractor picked the subtotal instead of the total, split a line item across two rows, read 1.234,50 as one thousand two hundred and thirty-four and a half when it meant something else, or treated page two of an invoice as a new document. These errors look plausible, so they pass straight into accounts payable unless something checks them. The fix is a layer of validation rules that test what must be true of every invoice, and a route to a person for the ones that fail.
This post goes through the failures that cause most bad invoice data, then the checks that catch each one. The wider argument that characters are rarely the weak link is in OCR is solved, document understanding isn’t.
Where invoice extraction goes wrong
Vendor layouts
Every supplier designs its own invoice. The invoice number might be labelled “Invoice No.”, “Inv #”, “Document number” or “Reference”, and sit top right, top left or in a table header. A model trained on common layouts handles the large suppliers well and the long tail less well, and the long tail is where most suppliers live. New suppliers are the riskiest invoices you will process. Key-value extraction depends on matching labels to values, and unfamiliar labels are where it slips.
Which number is the total
An invoice can show a subtotal, a discount, one or more tax amounts, shipping, a total, a deposit already paid, a credit applied and an amount due. Several of these sit in the same column, formatted the same way. Extractors that look for the largest number or the word “total” pick the wrong one often enough to matter, especially when “Total excl. VAT” appears above “Total”. The figure you want to pay is usually the amount due, which is not always the one labelled total.
Line items
Line items are a table, and they fail the way tables fail. A description that wraps onto two lines becomes two items, one with no price. A table with no borders is read as paragraphs. Columns for quantity, unit price and amount get shifted when a cell is empty. Discounts and fees sometimes appear as lines with negative amounts and sometimes as notes. Table extraction and table structure recognition are the underlying problems, covered further in tables in PDFs.
Currencies and number formats
The same characters mean different numbers in different countries. 1.234,50 in Germany is 1,234.50 in the UK. A space can be a thousands separator. The dollar sign covers several currencies, and many invoices state the currency once in a footer or not at all. An extractor that assumes one format will be off by a factor of a thousand on some invoices, or will read a cents amount as whole units. Data normalization with an explicit locale for each supplier is what prevents this.
Dates
03/04/2026 is the third of April in Britain and the fourth of March in the United States. Invoices also carry several dates: issue date, tax point, delivery date, due date, and sometimes payment terms such as “Net 30” in place of a due date. Picking the wrong one shifts payment schedules and ageing reports without any visible error.
Multi-page invoices and bundled files
Long invoices run line items across several pages, with the totals on the last page and the header on the first. If pages are processed independently, page two has no supplier, page three has no line items and only the last has a total. The opposite problem is a single PDF containing several invoices, or an invoice followed by a delivery note and a statement, which gets merged into one record. Splitting and joining pages correctly is part of the job.
Scans, photos and receipts
Paper invoices scanned at low resolution, photographed on a desk or faxed bring all the usual OCR problems, and digits are where they hurt most: 8 read as 3 or 0 read as 6 changes an amount without changing how plausible it looks. The routing between text extraction and OCR is covered in scanned vs digital PDFs, and the specific problems of till receipts in receipt OCR.
Credit notes, duplicates and look-alikes
A credit note looks almost exactly like an invoice, and treating it as one turns a refund into a payment. Pro forma invoices, quotes and statements also resemble invoices. Duplicates are common too: the same invoice emailed twice, or sent once as a PDF and again as a reminder. Without checks, each becomes a separate payable.
Checks that catch the errors
Most of these failures can be caught with rules that follow from what an invoice is. Rules do not depend on how the extractor works, so they keep working when you change tools. Run them on every extracted invoice, after structured data extraction and before anything is posted.
Check | Rule | Catches |
|---|---|---|
Line arithmetic | Quantity times unit price equals line amount, within rounding | Shifted columns, misread digits |
Subtotal | Line amounts sum to the subtotal | Split, merged or missing line items |
Total | Subtotal minus discounts plus tax and charges equals the total | Wrong total picked, missing tax line |
Tax rate | Tax divided by taxable amount matches a valid rate for the supplier’s country | Wrong field as tax, locale errors |
Dates | Dates parse, the due date is on or after the issue date, neither is far in the future | Day and month swapped, wrong date field |
Supplier match | Supplier name, tax number or bank details match your supplier records | Wrong vendor, possible fraud |
Duplicate | No existing record with the same supplier, invoice number and amount | Resubmitted and reminder copies |
Document type | Credit notes and non-invoices are labelled and handled separately | Refunds paid as invoices |
Required fields | Supplier, number, date, total and currency are all present | Partial extraction, unreadable pages |
Arithmetic checks do most of the work. When line items, subtotal, tax and total all reconcile, it is unlikely that the extraction is wrong in a way that matters, because errors rarely cancel out. When they do not reconcile, the mismatch usually points at the problem: a gap equal to one line’s amount means a missing line, and a total that is ten or a thousand times too large means a format error.
Supplier matching is the second line of defence. Comparing extracted tax numbers and bank details with your supplier records catches extraction errors and also catches the invoice-redirection scams that change bank details on an otherwise familiar invoice. That second purpose alone justifies the check.
Matching against purchase orders and goods received notes, often called three-way matching, adds a further layer where you have that data. It belongs in your finance system’s rules rather than in extraction itself.
Sending exceptions to people
No extractor or rule set gets every invoice right, so the goal is to route the ones that fail to a person quickly, with enough context to fix them. A human in the loop reviewing exceptions is far cheaper than reviewing everything. Show the reviewer the extracted values next to the page they came from, highlight which check failed, and record their correction. Corrections are the best training data you will get, and over time they show which suppliers and layouts cause the most work.
Set the routing rules by risk. A new supplier, a changed bank account, a total above a threshold or a failed arithmetic check should always go to review. A known supplier whose invoice reconciles perfectly can usually go straight through. Keep a record of every automatic decision, so that an audit trail exists when finance or auditors ask why an invoice was paid.
Measuring invoice extraction
Measure at the field level on your own invoices. Take a few hundred recent invoices, including your most awkward suppliers, record the correct supplier, number, dates, line items and total for each, and score every extractor or version against them. Track the share of invoices that pass all checks without review, the share caught by checks, and, most importantly, the share that passed checks but were still wrong. That last number tells you whether your rules are strong enough.
The best invoice extraction API roundup lists the main tools, and head-to-head pages such as Exabase vs Mindee and Exabase vs Rossum cover specific choices. Whatever you choose, the validation layer above stays yours.
Where Exabase fits
Exabase Extract recognises invoices automatically. Submit a PDF or image and the result includes a document type of invoice and structured fields: vendor, invoice number, issue date, due date, line items and total. Scanned invoices go through built-in OCR on the same endpoint. The full text also comes back in chunks with page numbers, which is what you show a reviewer next to an exception and where you look for fields beyond the structured set, such as tax lines or the currency. Add ?format=markdown and the invoice is laid out as labelled sections, ready for a prompt or a review screen. Results arrive by polling or by webhook, as described in the guides to retrieving results and extraction webhooks.
Exabase is the extraction substrate, and the checks above are yours to build on top. Extract does not reconcile totals, match suppliers, detect duplicates or decide what gets paid; those rules depend on your finance processes. It also does not publish accuracy figures for invoices, so run your own test set through it. The invoice processing and expense receipts use cases show how teams put the pieces together, the accounting industry page covers the wider context, and the free invoice to JSON and invoice to Markdown tools let you try a file in seconds. The file extraction solution shows the full flow.
Frequently asked questions
What is the most common cause of invoice extraction errors?
Picking the wrong field and breaking line-item tables, more than misreading characters. Subtotals taken as totals, wrapped descriptions split into extra rows, and locale-specific number formats cause most bad data.
How do I validate extracted invoice data?
Check that line items sum to the subtotal and that subtotal, discounts, tax and charges add up to the total. Then check dates, tax rates, supplier details and duplicates, and route any invoice that fails to review.
How do I handle invoices that span several pages?
Process the file as one document, carrying the header from the first page and the totals from the last, and check that line items across all pages sum to the subtotal. Also detect files that contain several separate invoices.
How do I stop duplicate invoices being paid?
Check every new invoice against existing records for the same supplier, invoice number and amount before posting it, and treat near matches, such as the same amount and supplier within a short period, as candidates for review.
Why does my extractor read amounts a thousand times too large?
It is applying the wrong number format, for example reading 1.234,50 with a full stop as the decimal separator. Normalise numbers using each supplier’s locale and flag totals that are far outside that supplier’s usual range.
Can extraction tell an invoice from a credit note?
Many extractors can classify document types, but credit notes, pro formas and statements look very similar to invoices. Check the document type explicitly and handle credit notes as negative amounts in a separate flow.
Do I still need human review if extraction is accurate?
Yes, for exceptions. Route invoices that fail validation, come from new suppliers, change bank details or exceed a value threshold to a person, and let reconciled invoices from known suppliers pass through.
What invoice fields does Exabase extract?
Exabase Extract returns vendor, invoice number, issue date, due date, line items and total for recognised invoices, plus the full text in chunks with page numbers and an optional Markdown version.
Related pages: Invoice processing, Invoice OCR, Structured data extraction, OCR is solved, document understanding isn’t, Tables in PDFs, Scanned vs digital PDFs, Invoice to JSON, File extraction, Best invoice extraction API
Other blog posts:

What breaks invoice extraction (and how to catch it)

Scanned vs digital PDFs: why your pipeline needs both paths

The 15 nastiest PDF edge cases we've seen

Should every website ship an llms.txt?

OCR is solved. Document understanding isn't

The PDF is the last unsolved file format

Parsing is a product you didn’t mean to build

The metadata hiding in your photos and videos