Deleted at the Source, Still in the Report
A practical guide to deletion handling in reporting pipelines.
This guide follows an operational business system, a separate reporting copy in a warehouse or lakehouse, and the report built from that copy. The copy can combine sources, retain approved history and keep reporting load off the business system. See how a missed delete leaves a verified duplicate in the reporting copy even after it is removed from the source.
The reports in this article read a separate copy of operational data: business system → reporting dataset in a warehouse or lakehouse → report. Teams make such copies to combine sources, keep approved history and avoid placing reporting queries on the operational system. A fresh direct query to that system would normally reflect its current rows, subject to caching and refresh.
Why would a source row be removed? A verified duplicate may be consolidated into the genuine record that remains. An accidental duplicate or incorrect import may need an approved correction. Older records may move from an active source table into a controlled archive while their history remains available. The source owner approves the removal, confirms which genuine record and historical evidence remain, and keeps appropriate correction evidence. Genuine orders, invoices and payments should not be treated as disposable rows; cancellations and reversals follow their own status or correction rules.
Here, an incremental process copies inserted and updated rows but misses a deletion. The operational source no longer has the record; the reporting copy still does. Replacing the copy with a complete, correctly scoped snapshot of the current source can remove the stale row if the filters and report refresh are correct. An incomplete snapshot cannot safely be used for that purpose.
Consider a service manager allocating tomorrow’s work. The source owner has approved removal of a verified duplicate request, but the copied dataset still contains it. The pipeline ran successfully overnight. The manager is now planning for work that no longer exists. Even after the deletion reaches the copy, an older update can recreate the record during replay unless the consumer preserves the source order.
When a source record is deleted, what should happen in the current reporting table, in retained history, and in the next report someone opens?
First, agree what “deleted” means
For reporting, the key distinction is between removing a verified duplicate, changing a genuine request to Cancelled, and moving an older record into an archive. All three might disappear from an operational screen, but they do not necessarily have the same effect on a reporting dataset.
For a current workload report, a cancelled request may remain in the data with its status intact while contributing no open work. A deleted duplicate should no longer appear as an active request. Historical reporting needs an explicit rule for whether to preserve the earlier state, correct it, or present a revised version. Do not let the ingestion tool make that business decision by accident.
This article concerns reporting correctness. It does not define a personal-data erasure or records-retention policy, and removing a row from a dashboard does not prove that every copy has been erased.
An incremental load may never see the deletion
A timestamp-based extract typically asks for rows changed since its previous run. A physically deleted row is no longer there to return. Microsoft makes this distinction explicit for Fabric Copy job: watermark-based incremental copy detects inserts and updates, while supported change data capture, or CDC, can capture deletes. Microsoft: Incremental copy.
Other tools have their own boundaries. Snowflake append-only streams capture inserted rows, not updates or deletes. A standard stream can expose those changes for supported objects, but the downstream process must still apply the intended action. Snowflake: Introduction to streams.
Ask the pipeline owner to show one real deletion signal and follow it to the consumer. The phrase “incremental pipeline” is not enough to establish coverage.
Follow one queue from source to report
In this example, a North American service operation starts with six open requests representing 24 remaining work hours. The report counts distinct open request IDs and sums their current remaining hours. It is not a forecast of elapsed completion time or a staffing recommendation.
Four changes occur before the next reporting cutoff:
| Source change | Effect on open requests | Effect on remaining hours |
|---|---|---|
| Remove duplicate R102 | −1 | −3 |
| Change R104 to Cancelled | −1 | −2 |
| Revise R105 from five hours to seven | 0 | +2 |
| Add R107 with four hours | +1 | +4 |
| Net change | −1 | +1 |
The correct result is five open requests and 25 hours. If the pipeline handles the status update, estimate change and new request but misses the deletion, the report shows six open requests and 28 hours.
After the approved removal, the operational source has six rows because R104 remains present with a Cancelled status. The accepted current reporting copy should also have six rows. The open-work report should contain only five requests. Comparing either table’s total row count with the report’s open count would test the wrong rule.
Reconcile the intended population instead: R101, R103, R105, R106 and R107, each once, with the correct status and remaining hours. Then verify the actual report or export used by the service manager.
A deletion must survive the trip through the pipeline
Capturing a database delete does not prove that a later connector or transformation preserves it. Debezium’s event-flattening options, for example, can drop deletion messages or represent a deletion through a rewritten record or a tombstone. The receiving component has to understand the selected representation. Debezium: New Record State Extraction.
A tombstone is a deletion marker, not a replacement business row. Keep the key, operation and ordering evidence needed by the consumer. Test the transformed message, not only the original source event.
The current reporting copy and retained history also need different treatment. Fabric CDC Copy job distinguishes Merge, which removes deleted rows, from its versioned-history option, SCD Type 2, which closes their current version. Its SCD Type 2 option is documented as preview and has connector and destination restrictions. Microsoft: CDC in Copy job.
The practical question is whether today’s report excludes the record while any permitted history remains interpretable. A current report must not count an old retained version as open work.
Stop old updates from bringing the record back
Suppose R102 has an update at source version 41 and a deletion at version 42. The deletion reaches the reporting copy first. Later, replay delivers version 41.
If the reporting consumer simply inserts any incoming key it cannot find, R102 returns. A sound current-state design compares the event with the latest accepted version, including deletion state. Version 41 must not override version 42.
Databricks AUTO CDC provides key and sequencing controls for this kind of ordered change application. Its delete handling retains tombstones temporarily; the documented retention setting must cover the expected processing delay. That is a configuration to verify, not unlimited protection against arbitrary replay. Databricks: create_auto_cdc_flow.
Agree the longest supported interruption and replay window. If the evidence needed to resume is gone, use a controlled rebuild from an authoritative baseline. Do not declare an old checkpoint safe merely because the job starts.
Do not repair a missed delete with an incomplete extract
Comparing a complete source snapshot with the reporting copy can reveal missing keys. Comparing a partial extract with the whole reporting copy can erase valid records.
Before treating absence as deletion, establish the snapshot’s scope, cutoff, completeness and consistency. A regional filter, failed page of API results or missing file changes what “absent” means. Even an empty snapshot needs a positive completion signal that distinguishes an empty business population from a failed extraction.
Snapshot history also needs deliberate configuration. dbt’s documented hard_deletes default is ignore; other options invalidate the prior version or create an explicit deletion record. Support depends on the dbt version and adapter, and existing snapshots need a migration plan. dbt: hard_deletes.
Review one deletion all the way to the user
Choose a report that depends on mutable source records. In an isolated test approved by the source owner, delete a verified duplicate key, deliver an older update after it, repeat the deletion, and submit an incomplete snapshot. Check both the current reporting copy and the required history. The incomplete snapshot should be rejected as evidence for deletion, not used to clear the copy.
Finish at the report, not the warehouse. A correct table does not refresh an imported model, replace an old export or correct an already distributed total by itself.
KCM’s data engineering services can help trace that path, define the deletion rule and test it against the reports your team uses.
