# How to reconcile source and destination data

> Compare pipeline records at a common cut-off using keys, values and group totals. See how two depot errors can cancel out in the grand total.

Source: https://cueapril.com/knowledge/how-to/reconcile-a-data-pipeline
Updated: 2026-12-02
Index: https://cueapril.com/llms.txt

## How do you check whether a pipeline moved the right records and values?

Compare source and destination at the same business grain and cut-off time. Check keys and values as well as totals, state the permitted tolerance in advance, and retain sample differences a reader can trace back to the underlying records.

## Make the two populations comparable

Agree what one record represents and which arrivals belong to the comparison window. A moving source can make a correct pipeline appear wrong.

1. Fix the as-of time or watermark, business key, filters and treatment of late updates.
2. Compare missing and extra keys, duplicate keys and important values through independently obtained extracts. Reconcile totals within meaningful groups.
3. Investigate mismatches at record level and account for every excluded record. Keep the cut-off, queries or extract identities, tolerance and remaining discrepancies.

## Worked example: A total of 240 can conceal two mistakes

A source lists 120 units each for depots A and B. A destination lists 110 and 130. Both totals are 240, so a grand-total check passes. Comparing by depot at the same cut-off identifies two discrepancies and gives the pipeline owner a concrete pair to trace.

## Try it on your pull request

Choose a change in your repository and tell Cue April what should happen. Review the proposed checks before they run.

[Try Cue April on your repository](https://app.cueapril.com/sign-up/?next=%2Fquality-start)

## Related reading

- [Data reconciliation](https://cueapril.com/knowledge/definitions/data-reconciliation)

- [Data freshness](https://cueapril.com/knowledge/definitions/data-freshness)

- [How to write a release readiness report](https://cueapril.com/knowledge/how-to/write-a-release-readiness-report)

[Browse the Knowledge base](https://cueapril.com/knowledge)
