Flag candidates without deleting records
An invoice duplicate check should produce a review queue with reasons, not a delete action. Re-uploading one file, receiving a corrected invoice and seeing two suppliers use the same invoice number are different situations. Define several candidate rules and keep their evidence separate. The reviewer needs to understand why the pair was flagged before deciding whether any record should change.
Power Query can compare records by selected fields. This proposed recipe uses supplier identity, document type, reference, currency and amount, with a separate source-file identity check.
Create reason codes that a bookkeeper can inspect
- Retain IntakeID, SourceFileID, SupplierID, DocumentType, InvoiceReference, Date, Currency and Amount. Preserve source values beside any normalized comparison fields.
- Flag the same source-file identity arriving more than once as a repeated intake candidate. Do not assume a repeated filename is the same file.
- Flag the same supplier, document type, invoice reference and currency on multiple records as a business-key candidate. Compare amounts and dates without concealing differences.
- Keep credit notes in their own document-type context. Missing references go to a completeness question rather than matching all blank values.
- Create one candidate group with all involved IDs and reasons. Keep the original records unchanged until a reviewer makes an authorized decision.
Rehearse eight synthetic records
| ID | Supplier / type / reference | USD | Source / expected treatment |
|---|---|---|---|
| I1 | A / Invoice / 100 | 120 | F1, original |
| I2 | A / Invoice / 100 | 120 | F1, re-upload candidate with I1 |
| I3 | A / Credit / 100 | -120 | F3, separate credit document |
| I4 | B / Invoice / 100 | 120 | F4, different supplier |
| I5 | A / Invoice / 101 | 50 | F5, first version |
| I6 | A / Invoice / 101 | 55 | F6, conflicting-version candidate |
| I7 | A / Invoice / blank | 120 | F7, missing reference |
| I8 | A / Invoice / 102 | 120 | F8, distinct reference |
Expect candidate group I1/I2 for repeated intake and shared business key, and I5/I6 for conflicting versions. I3, I4 and I8 are not duplicates merely because some values resemble I1. I7 requires information. A group may have several reasons without becoming several independent duplicate cases.
Keep release and review states explicit
Use Pending review, Distinct records, Repeated intake, Corrected version and Needs evidence as decision states. Record which source was inspected and what the reviewer authorized. A “possible duplicate” flag should not silently mark an invoice paid, remove it from the ledger or suppress a legitimate supplier request.
Excel connector actions operate on tables. If the candidate queue is a spreadsheet, use stable group IDs and a controlled writer. Keep reviewer decisions in a separate keyed table so rebuilding candidates cannot erase them.
Test the candidate rules before adding more automation
Change I2’s filename while keeping its source identity; the repeated-intake candidate should remain. Give I4 the same amount and date as I1; supplier B must stay distinct. Change I6 back to $50; it still shares a business key and still needs a source check. Rerun the pack and ensure the same two groups appear once each.
These are fictional cases and expected review outputs, not a live fraud or duplicate-detection result. ParseMill can prepare reviewed invoice data and source-linked Excel output; connecting a recurring candidate queue to external bookkeeping tools requires a separately scoped workflow setup. Keep the final accounting decision with the authorized reviewer.
Assisted setup with ParseMill
Design a useful matching and review step
Identify the two records, the matching fields and the differences a person must decide. We can assess the preparation and exception workflow; accounting judgments stay with your team.
Discuss this deploymentDescribe your tools, the repeated task, its frequency and the result you need. We agree the scope and any fee before starting. Third-party connections need their own fit assessment; sending a request does not activate an integration.
For supplier invoice PDFs, try the invoice-to-Excel example to see ParseMill’s extraction, source review and workbook export.
Sources and editorial notes
- Microsoft: Merge queriesChecked 2026-11-09
- Microsoft: Excel Online Business connectorChecked 2026-11-09
Written by ParseMill. Worked examples are illustrative process examples, not customer results. Software availability can vary by subscription and region; check the linked documentation for your account. Review decisions and approvals remain with your team.