To reconcile extracted data with records, match the document to a specific source record, compare identifiers and totals using agreed rules, and separate harmless formatting differences from business conflicts. Hold processing when identity, currency, duplicate status, or financial amounts remain unresolved. Keep the original values, comparison results, and review decisions together.
Define what the source record can establish
Start with the decision the comparison must support. Approving an invoice, attaching a certificate, and updating a customer address require different evidence. A document can be readable and internally consistent while belonging to the wrong transaction. Extraction confidence does not establish that the extracted value agrees with the business record.
Choose the authoritative record for each field before building comparisons. A purchase order might establish the authorized supplier and ordered quantity, while a receipt establishes accepted quantity. An invoice states the amount requested. Treating one of these as authoritative for all fields can conceal a disagreement that deserves investigation.
Write a field contract that records the document field, corresponding record field, comparison method, acceptable variation, and action on failure. Identify who owns the rule and who may resolve exceptions. Separate rules for matching identity from rules for accepting a value; a close amount match cannot compensate for an uncertain supplier match.
Check whether reference records contain stable identifiers, consistent units, and usable historical versions. Address those gaps through AI data readiness before using incomplete reference data to reject documents. A missing reference value is a distinct outcome from a conflicting value.
Match the document before comparing its values
Build the candidate match from stable identifiers such as a transaction number combined with supplier identity and business entity. Preserve leading zeros and meaningful punctuation until their significance is understood. A document number that looks numeric may still be an identifier rather than a number suitable for arithmetic.
Separate candidate discovery from match acceptance. Similar names can help locate possible records, but the acceptance rule should require enough evidence to distinguish them. If two source records satisfy the rule, route the case for resolution instead of selecting whichever appears first.
- Capture the document identifier and the business context in which it is unique.
- Locate candidate records using the approved reference fields.
- Compare independent identity evidence, including entity and transaction relationships.
- Record a unique match, no match, or multiple possible matches.
- Begin value reconciliation after the identity decision is established.
For example, an invoice number may recur across different suppliers. Matching on that number alone could retrieve a plausible record with an unrelated balance. Adding supplier identity and legal entity narrows the comparison to the intended obligation. If a required identifier is absent, retain the document for investigation rather than inventing one from surrounding text.
When reference material is spread across documents and repositories, knowledge retrieval readiness helps clarify which records are retrievable and distinguishable. Finding a related document does not establish that it is the authoritative transaction record.
Compare identifiers, totals, and line items separately
Keep both the raw extracted value and a comparison value. The raw value shows what was read; the comparison value applies approved transformations. Removing surrounding spaces may be safe for a code, while removing internal spaces could merge distinct identifiers. Document transformations by field instead of applying one cleanup rule across the document.
For amounts, establish currency, sign, decimal interpretation, and tax basis before calculating differences. Compare like with like: a total including tax should not be compared directly with a subtotal excluding tax. A correct numeric value associated with the wrong currency remains a business conflict.
Check internal arithmetic as well as agreement with the source record. Recalculate line extensions and document totals where the necessary fields exist. Then compare those results with the corresponding source amounts. Internal agreement supports consistency, but a consistently extracted document can still disagree with the authorized transaction.
Use line relationships to explain total differences. A missing line and an overstated line can cancel each other in the document total. Match items by agreed identifiers and attributes, then compare quantity, unit, rate, and adjustments. Keep unmatched lines visible instead of forcing them onto the closest description.
A reconciliation result should distinguish identity agreement, arithmetic agreement, and agreement with the source. These outcomes answer different questions. A single overall pass flag makes investigation harder because reviewers cannot see whether the problem began with record selection, extraction, or the underlying transaction.
Set tolerances that preserve business meaning
Use tolerances for understood variation, such as rounding under an agreed calculation method. Define whether a rule applies to a line, a tax component, or the final total. Include the comparison basis and boundary behavior so two reviewers can reproduce the same decision from the same inputs.
A tolerance should not erase an identity conflict. An incorrect supplier, an unexpected currency, or a transaction attached to the wrong entity needs resolution even when the amount difference is small. Likewise, do not use amount proximity as a substitute for a missing record relationship.
Consider the combined effect of accepted differences. Small discrepancies across several lines can accumulate into a material total difference. Evaluate both the individual comparisons and their aggregate effect. Record the actual difference even when the rule permits acceptance, so later analysis can distinguish exact agreement from tolerated variation.
Test the boundaries with deliberately chosen examples: exact agreement, a value at the acceptance boundary, a value beyond it, a missing field, and an ambiguous identifier. Include different document layouts and numeric conventions. Use AI evaluation and quality assurance to assess whether the rules produce defensible outcomes across those cases.
Decide which mismatches hold processing
Define the consequence of each exception before running documents through the workflow. The hold should apply to the affected action, such as payment approval or a record update. Receiving and retaining the document can continue while that action waits for evidence.
- Identity conflict: hold when the supplier, customer, legal entity, or transaction cannot be uniquely established.
- Financial conflict: hold when currency, sign, or an amount exceeds the approved acceptance rule.
- Duplicate uncertainty: hold the consequential action when the document may represent an obligation already processed.
- Missing comparison evidence: hold when a required source record or required value is unavailable.
- Formatting difference: permit continuation when an approved transformation establishes equivalence without changing meaning.
Do not silently overwrite the source record to make a comparison pass. The discrepancy may reflect a valid document amendment, an incorrect reference record, or an extraction error. Each cause requires a different correction, and the authority to make it may belong to a different person.
For help planning this work, see AI and ML services.
Make exceptions reviewable and safe to release
Give the reviewer the document location, extracted value, source value, applied transformation, difference, and failed rule. Include the reference record version or retrieval time. Showing these together reduces the need to reconstruct the comparison and makes the reason for the hold explicit.
Keep correction decisions separate from acceptance decisions. A reviewer may correct a misread digit, request a revised document, or ask the record owner to amend a reference value. Require a reason for an override and retain the previous result. Recalculate affected comparisons after a correction instead of treating manual intervention as a blanket pass.
Before releasing the held action, check whether the source record has changed since comparison. A later receipt, cancellation, or adjustment can alter the decision. If relevant fields changed, repeat their comparisons and record the new outcome. This prevents an earlier reconciliation from authorizing an action against different current data.
Monitor exception reasons to identify where improvement belongs. Repeated missing identifiers may require changes at document intake; recurring quantity conflicts may reveal timing differences in receipts. Track unresolved holds and repeated overrides separately from completed matches so apparent throughput does not hide unfinished decisions.
Questions about reconciliation edge cases
How should credit notes relate to the original invoice?
Model the credit as a separate document linked to the obligation it adjusts. Compare its direction and intended scope with that relationship. Replacing the original invoice total with a net amount can obscure which document authorized the adjustment.
What if one document covers several source transactions?
Define an allocation relationship before evaluating acceptance. The assigned amounts should explain the document total and identify any remainder. Keep the case open if the allocation depends on a reviewer guessing which transactions belong together.
How should a scanned replacement of the same document be handled?
Separate document versions from business obligations. A clearer scan can replace the extraction evidence without creating another payable item. Link the versions and retain which one supplied the values used for the final decision.
Can reconciliation proceed during a reference system outage?
Intake and extraction can continue if the workflow preserves a pending comparison state. Queue the comparison for recovery and avoid presenting an unavailable reference check as completed. Define how pending items resume without duplicating downstream actions.