Request a demo
All articles How it works

What happens inside a reconciliation run

From pressing Run to a match rate and a list of exceptions: the steps the InsightReconcile engine takes, what it stores at each one, and where to look in the run results.

November 7, 2026 · 6 min read

A reconciliation result is only useful if you can trust how it was produced. This article walks through a run in InsightReconcile step by step, as the engine performs it, and shows where each part ends up in the interface.

Starting a run

A run starts from Run now on a job (or the run action in the jobs list). Starting a run needs the admin role. The engine loads the job, opens a run record with the next run number and status RUNNING, and marks the job as running.

Fetching the two sides

Each side of a job points at a connection from the platform's connection registry, and either a registered data store (a table) or a SQL query. If a query is set, it is used; otherwise the engine selects the whole table. Both sides are read into memory and the row counts recorded. Write queries that select only what you compare, filtered to the period you care about:

-- source: billing
SELECT invoice_id, customer, amount, status
FROM public.ar_invoices WHERE invoice_date >= '2026-10-01'

-- target: warehouse
SELECT invoice_number, customer_name, amount_usd AS amount, status
FROM public.fact_invoices WHERE invoice_date >= '2026-10-01'
The Source tab of a made-up job: the ERP billing connection and the source query on public.ar_invoices.
A job's source: a connection plus a query. The target tab has the same fields.

Comparing and storing every result

The engine applies the job's recon type (row count, field-level, aggregate or hash; see the four strategies), honouring the tolerance. Every result is stored as a run detail: the record key, the match status, the source values, the target values and, for mismatches, each differing field with both values and the difference. Nothing is summarised away, so the evidence for every number on the summary is one click below it.

The Details tab of a run filtered to three mismatched invoices, showing source and target values and the differing field.
Run details, filtered to mismatches: three made-up invoices, the values on each side and which field differs.

Validation rules

Rules attached to the job run next, against the fetched source data: null checks, ranges, uniqueness, regular-expression formats and cross-dataset checks. Each records how many records it checked, how many failed, a message and a few sample failing records. They appear under the run's Validations tab, separate from the comparison, because a load can match perfectly and still be wrong.

The Validations tab of a run: four rules on invoice_id and amount, all passed, each with records checked, failures and a message.
Validation results for the run: four rules, 48 records checked each.

The summary

The run is then summarised: source and target row counts, matched, mismatched, missing in source, missing in target, the match percentage (matched over everything compared) and the duration. The overall status is PASS only if there are no mismatches and nothing is missing on either side. The run is marked COMPLETED, and the job's last run status and time are updated.

The Summary of a made-up run: 48 records, 43 matched, 3 mismatched, 2 missing in target, an 89.58 percent match rate and the run info.
A run's summary: 43 of 48 records matched; 3 mismatched and 2 missing in the target. The engine summary is kept as JSON.

Exceptions

Finally, every mismatched or missing result becomes an exception: type MISMATCH or MISSING, severity HIGH, status OPEN, linked to the run and the job. Exceptions are what people work; see working exceptions to closure.

What the status does and does not include

The overall PASS or FAIL comes from the comparison alone. Validation results are stored with the run and shown beside it, but a failing rule does not turn a matching run into a failed one. Read both tabs before you call a load clean.

Three details of the in-run rules are worth knowing:

  • They check the source side. Null, range, uniqueness and regex rules run against the source query's result. The cross-dataset rule is the exception: it looks for source values that do not appear in a reference column of the target result.
  • A missing column fails the rule with a "column not found" message, which usually means the query no longer selects it.
  • Custom SQL and referential rules run against a connection. Test them on their own against the connection; inside a run, the cross-dataset rule covers the reference check.
Every run opens its own exceptions. Exceptions are created per run. If you re-run a job before the cause is fixed, the same differences produce a second set of open exceptions. Fix first, then re-run, and close the older set with a note pointing at the run that confirms the fix.

When a run fails

If anything goes wrong (a connection refuses, a query has a typo, a column is missing) the run is marked FAILED with the error message and duration, and the job's last status becomes FAIL. A failed run is visible on the dashboard as such, rather than looking like a clean one.

Data volumes. Both sides are read into memory for the comparison. For very large tables, filter the queries to a period or partition, or compare aggregates and hashes first and run field-level on the slice that differs.

Reading a run

Start at the Summary: the counts tell you whether the problem is volume (missing on one side) or content (mismatched). Then open Details, filtered to the status you care about, to see the records and their values. Check Validations before blaming the copy, because a failing key rule on the source explains a lot of strange joins. The engine summary at the bottom of the run is the raw record of what the engine computed, kept with the run.

Run history

Every run of a job is kept with its number, who or what triggered it, and its results, under the job's Runs tab. The Diff view tab of a run lists every record that differs so you can step through them, and the results can be exported.

The export is a CSV of the run details, optionally filtered by match status, with each row's index, record key, status, source values, target values and field differences. It is the simplest way to hand a list of differences to someone who does not use the product.

Worked through: reading the numbers

The summary above, from the made-up October invoice job, reads 48 records compared: 43 matched, 3 mismatched, 0 missing in source and 2 missing in target. The match percentage is matched over everything compared, 43 ÷ 48 = 89.58%. Because there are mismatches and missing records, the status is FAIL, and five exceptions are opened, one for each result that is not a match. The two missing invoices are a volume problem, to raise with whoever runs the load; the three mismatches are content, to explain one by one.

Frequently asked questions

Does starting a run return straight away?

No. The run executes within the request: the call returns the run id once the run has completed, or an error if it failed (the run is still recorded as FAILED). Allow for that in an orchestrator's timeout, especially for large queries.

Can I stop a run?

A run whose status is still RUNNING can be marked cancelled, which records who cancelled it and sets the job's last status to CANCELLED. Use it to clear a run left in that state, for example after the service was restarted mid-run.

How do I tell a pipeline's runs from a person's?

Runs started through the API are recorded as manual runs, along with the user who started them. Give the orchestrator its own account, and its runs are easy to pick out.

Reconcile two of your own tables

Pick a source and a target you argue about at month-end. We set up the job with you and walk through the first run's differences.

Request a demo