Privacy and preparation
What should a dataset validation exception log include?
By SourceX Editorial · Updated
9 sections
Short answer
A dataset validation exception log lists every known defect shipped with a release, one row each: the check that found it, the records and fields affected with counts, the impact on the buyer's declared use, a named impact owner, the decision taken and a resolution status tied to a dataset version. Privacy, scope and unreconciled-count defects are not logged and shipped; they block delivery until fixed.
Record timeline
Dataset validation exception
Key takeaways
- An exception log records defects you decided to ship; a validation report records checks you ran. Deliver both.
- Each row needs scope, affected count with its denominator, impact on the declared use, an impact owner, a decision and a status.
- Privacy defects, out-of-scope records and unexplained count gaps block delivery; they are never disclosed and shipped.
- The impact owner is the person who understands the business process, not the engineer who found the defect.
- Tie every row to a dataset version and keep fixed rows, so buyers can compare releases.
What should a dataset validation exception log include?
A dataset validation exception log lists every defect you found and chose to ship, one row per defect, with the check that found it, the records it touches, what it does to the buyer's declared use, the person who owns that impact, the decision taken and the current resolution status. It is the honest companion to a validation report: the report says which checks passed, the log says what is still wrong and why the delivery went out anyway.
The log exists because no real operational export is clean. A help desk history, a dispatch log or an ERP extract will carry duplicate records from an old migration, timestamps written in two time zones, codes that changed meaning and attachments that never exported. Fixing all of it before delivery is rarely possible. Hiding it is worse, because the buyer will find it during acceptance testing or, later, inside a model that behaves oddly.
A good log lets a buyer answer three questions without calling you: is this defect in the part of the data I care about, how many records does it touch, and has anyone decided what to do about it. If a row cannot answer those three questions, it is a note, not an exception entry.
Write the log for a reader who has never seen your systems. Name fields as they appear in the delivered files, not as they appear in the source application, and express every period as dates rather than as internal project names such as the old platform or before the cutover.
Which defects go in the log and which block the delivery?
Log a defect when it is known, bounded and disclosed, and when the buyer can still use the data for its declared task after reading the entry. Block the delivery when the defect breaks the agreed scope, touches privacy or rights, or makes the record counts impossible to reconcile. The test is not how bad the defect looks; it is whether a reasonable buyer would sign the acceptance certificate after reading it.
Pipelines already make this distinction. In dbt, a data test can be configured with severity error or warn, and with error_if and warn_if thresholds on the number of failing rows, so one duplicate can raise a warning while ten raise an error. The OpenLineage data quality assertions facet records the same split: a test can fail without blocking the pipeline when its severity is warn. Your exception log is the human-readable record of every warn-level result you decided to ship, plus every defect no automated test covers.
| Defect class | Default decision | Why | What the log must show |
|---|---|---|---|
| Personal data found in free text after de-identification | Block and fix | A privacy defect is not something a buyer can accept by reading about it | Nothing: fix, re-run the residual check, then deliver |
| Records outside the approved date range or business unit | Block and remove | Out-of-scope records were never licensed | Nothing: remove them and reconcile counts again |
| Row or case totals that do not reconcile to the source | Block until explained | Unexplained loss means nobody knows what is missing | Only once explained: the cause and the gap per table |
| Duplicates left by a historical system migration | Log, or exclude if cheap | Bounded and detectable by key | Count, key used, period affected, dedup rule if any |
| Mixed time zones in one timestamp field | Log with a correction rule | Usable once the rule is known | Affected period, offset rule, fields affected |
| Outcome code whose meaning changed mid-history | Log with a mapping | Labels stay usable if the change date is known | Old and new meaning, change date, mapping table |
| Attachments referenced but not exported | Log, or narrow scope | Text records remain usable without the files | Share of records with missing files, by year |
| Free text truncated at a source field limit | Log | Bounded, and the limit is a property of the source | Limit, fields affected, share of records at the limit |
The exception log template: fields a buyer can act on
Use one row per exception and keep the log as a CSV or JSON file in the delivery, next to the data dictionary and the manifest. The fields below are the minimum. Add your own, but do not drop any of these, because each one answers a question an acceptance reviewer will ask. Example values are illustrative.
Two fields carry most of the value. affected_count with its denominator lets a buyer judge scale without running anything: 1,240 rows means one thing in a table of 5,000 and something else in a table of 400,000. impact_on_use forces you to describe consequences in terms of the agreed use, which is where most logs fail; a row that says timestamps inconsistent tells the buyer nothing, while a row that says resolution time is overstated by one hour for these rows tells them exactly what to correct or filter.
For resolution_status, use a short fixed vocabulary rather than free text, so a buyer can filter the log and so status changes between releases are easy to diff. The six values below cover almost every case.
- Open: found and bounded, decision pending. A delivery should not ship with open rows unless the buyer agrees.
- Disclosed: shipped as is, impact described, no correction supplied.
- Corrected by rule: shipped as is, with a rule or mapping the buyer can apply.
- Excluded: affected records removed from this release; counts in the manifest reflect the removal.
- Fixed in version: corrected in a later release named in release_ref.
- Withdrawn: on review it was not a defect; keep the row and say why.
| Field | What to record | Illustrative value | Rule |
|---|---|---|---|
| exception_id | Stable identifier that never changes across releases | EX-014 | Never reuse an ID, even after the defect is fixed |
| detected_by | The check, test or review that found it | Unique test on ticket_id, warn level | Name the test so the buyer can re-run it |
| scope | Tables, fields and period affected | tickets.created_at, Jan 2019 to Mar 2020 | Specific enough to filter on |
| affected_count | Records affected and the denominator | 1,240 of 412,000 tickets | Always give both numbers |
| impact_on_use | What the defect does to the declared use | Resolution time is overstated by one hour for these rows | Tie it to the use in the agreement, not to data quality in general |
| impact_owner | The named role who decided and answers questions | Supplier data lead | A role and a contact, never a team alias alone |
| decision | Fix, exclude, accept with disclosure or correct by rule | Accept with correction rule | One decision per row |
| resolution_status | Where the exception stands now | Disclosed, correction rule supplied | Use a fixed vocabulary |
| release_ref | Dataset version and file the entry applies to | v1.0.0, tickets.parquet | Update on every release |
| evidence_ref | Query, sample IDs or test output that shows the defect | Failing rows saved to audit table, 20 sample IDs listed | Never include personal data in the evidence |
Who should own the impact, and why not the engineer who found it?
The impact owner is the person who decided the defect could ship and who will answer the buyer's questions about it, which is usually the data owner for that system, not the engineer who wrote the test. Engineers can measure a defect; only someone who knows the business process can say what it does to the meaning of the records.
Take a reused status code. The engineer sees that code 7 appears with two distributions of resolution time. The operations manager knows code 7 meant escalated until a process change and closed by automation afterward. Only the second person can write the mapping and stand behind it. Put that person's role in impact_owner and keep a named contact in the delivery documents.
Keep ownership narrow. One owner per row, and a separate reviewer on the supplier side who signs the whole log before release. If nobody is willing to own a row, treat the defect as blocking.
Ownership also sets the response path after delivery. When the buyer's acceptance team questions an entry, the question goes to the impact owner, and the answer, along with any change in status, goes back into the log for the next release.
Which hidden defects should you hunt before writing the first log row?
The defects that change acceptance decisions are the ones that pass every format check: totals that do not reconcile to the approved scope, timestamps that are valid but wrong, schema changes hidden inside one column, attachments that exist as links but not as files, and outcome labels whose definition moved. A file that parses is not a dataset that means what the agreement says it means.
At a glance
Which hidden defects should you hunt before writing the first log row
Run these checks before you write a single log entry, because each one either produces an exception row or proves there is none to write. Record the check and its result even when it is clean; a buyer reads a short log very differently when it sits next to evidence that the hard checks were actually run.
- Scope reconciliation: every record falls inside the approved systems, date range and business units, and nothing approved is missing.
- Row and case totals: counts per table and per case reconcile from the source system to the delivered files, with every difference explained.
- Timestamp validity: no future dates, no events before account creation, consistent time zones, and the ordering of events within a case makes sense.
- Schema history: fields that were added, renamed or repurposed during the covered period are listed with their change dates.
- Attachment integrity: every referenced attachment either exists in the delivery with a matching checksum or is counted as missing.
- Outcome labels: each label value has one definition across the whole period, or the change is mapped.
- Exception log: every warn-level result and every manual finding above has a row, an owner and a status.
Worked example: an exception log for a help desk export
This example is illustrative. A services company prepares six years of help desk tickets for a licensed delivery whose declared use is training a model to predict resolution paths. Validation finds five issues. Four ship with log entries; one blocks the release until it is fixed. The notes below comment on three of them; the log itself is the table at the end of this section.
Notice what the log does not contain. There is no row for tickets whose subject line is blank, because the field is optional in the source system and the data dictionary already says so. Expected properties of the source belong in the dictionary; the exception log is for defects, meaning places where the data does not match what the dictionary and the agreement promise.
- EX-005 stays in the log after it is fixed, so the buyer can see the residual check was re-run and passed, but it never shipped as an accepted defect.
- EX-003 is the one most likely to be missed: every value is valid, every file opens, and a model trained across the full period would learn that urgent tickets did not exist in early years.
- The exception for this example is EX-001: excluding duplicates is cheap here because a stable source ID exists. Without that ID, the right decision would be to disclose the duplicates with a count and let the buyer choose.
| ID and finding | Scope and count | Decision | Owner and status |
|---|---|---|---|
| EX-001: duplicate tickets created when two help desks merged | Ticket table, one quarter, about 2% of that quarter's tickets | Exclude duplicates by source ID; keep the earlier record | Support operations lead; excluded, counts updated in manifest |
| EX-002: created_at stored in local time before a platform change, UTC after | All tickets before the change date | Accept with correction rule; offset table supplied | Data lead; corrected by rule |
| EX-003: priority value urgent introduced partway through the period | Priority field, earlier years have no urgent value | Disclose; buyer can restrict training on priority to later years | Support operations lead; disclosed |
| EX-004: screenshot attachments for the first year were purged under a retention policy | Attachment table, first year only | Disclose; text fields unaffected | IT manager; disclosed |
| EX-005: customer phone numbers found in ticket bodies after de-identification | Free text, small sample hits | Block; fix redaction and re-run residual check | Privacy reviewer; fixed before release, row kept as history |
How should the log travel with the dataset and its versions?
Ship the log in two forms: a machine-readable file in the delivery, and a short summary in the dataset documentation the buyer reads first. The Hugging Face dataset card template has a Bias, Risks, and Limitations section meant for technical and sociotechnical limitations, and the Croissant responsible AI vocabulary defines rai:dataLimitations for known limitations, including data quality issues. Datasheets for Datasets asks the same thing directly: whether the dataset contains errors, sources of noise or redundancies.
Keep the evidence behind the log reproducible. When dbt runs a test with store_failures enabled, it saves the failing records in a table named after the test, and later runs replace those failures. Point evidence_ref at that kind of output, or at the query that produces it, rather than pasting records into the log.
Tie every row to a version. Croissant recommends MAJOR.MINOR.PATCH versions for datasets and treats edited or removed records as a MAJOR change, and it recommends sha256 checksums for every file in a versioned dataset. So when you exclude records or fix a defect in place, the version moves, the checksum changes, and release_ref in the log says which release the row describes.
Read the log aloud with the buyer at handover if the delivery is large or the first of a series. Ten minutes walking through the material rows prevents the most common acceptance dispute, which is a buyer rejecting a delivery over a defect that was disclosed in a file nobody opened.
When does a growing exception log mean the scope is wrong?
Stop when the log starts describing the dataset rather than exceptions within it. If more than a few rows touch the field the declared use depends on, the delivery does not match the scope and needs a scope conversation, not a longer log.
At a glance
When does a growing exception log mean the scope is wrong
Narrow the scope when defects cluster in one period, system or business unit. Delivering five clean years is better than six years with a fragile correction rule for the oldest one, and a narrower scope is easy to explain in an amendment.
Ask for specialist review when an exception touches personal data, consent, contractual restrictions or regulated records. Those are not quality decisions, and an impact owner on the data team should not be the one deciding them.
- Stop: an exception affects the outcome label or target field across most of the period.
- Stop: record totals cannot be reconciled and the cause is unknown.
- Narrow: defects concentrate in a period before a system migration.
- Narrow: one business unit used different codes and no mapping exists.
- Escalate: personal or sensitive data appears where de-identification should have removed it.
- Escalate: records may fall under a customer contract that limits their use.
Where the exception log fits in a SourceX licensing deal
In a SourceX deal, preparing and delivering the dataset is part of the service, alongside rights review and contracting, so the exception log is built during preparation rather than bolted on at the end. Because the business signs off on scope and terms before a single record is handed over, any known defect large enough to change scope is raised at that sign-off. A company wondering whether its records are a candidate can start with a brief assessment that needs no data.
Frequently asked questions
Is an exception log the same as a validation report?
No. A validation report lists the checks run and their results. An exception log lists only the defects you decided to ship or that were found and fixed, with the records affected, the impact on the declared use, an owner and a status. Most deliveries need both.
Should fixed defects stay in the log?
Yes. Keep the row, set the status to fixed in version and name the release. A buyer comparing two releases needs to know what changed, and a fixed privacy defect shows that the residual check was re-run.
What format should the exception log use?
Use CSV or JSON with the same field names in every release, stored next to the data dictionary and manifest. Summarize the material rows in the dataset card or datasheet so a reader sees them before opening any file.
Can a known exception be used to deliver records outside the agreed scope?
No. Out-of-scope records were never licensed, so they are removed, not disclosed. If the scope itself needs to change, that is an amendment the data owner approves before delivery.
Who signs off the exception log?
Each row has an impact owner who understands the business process behind the defect, and one reviewer on the supplier side signs the whole log before release. Privacy, consent and contract questions go to the appropriate specialist rather than the data team.
Sources
- dbt data tests can return warnings instead of errors, with severity error or warn and error_if and warn_if thresholds on the number of failures. Source
- With store_failures, dbt saves the records that failed a test in a table named after the test, and a later run replaces previous failures. Source
- The OpenLineage data quality assertions facet records each test's success and severity, and notes a test can fail without blocking the pipeline when severity is warn. Source
- The Hugging Face dataset card template includes a Bias, Risks, and Limitations section for technical and sociotechnical limitations. Source
- The Croissant responsible AI vocabulary defines rai:dataLimitations for known limitations, including data quality issues and non-recommended uses. Source
- Croissant 1.1 recommends MAJOR.MINOR.PATCH dataset versions, treats edited or removed records as a MAJOR change, and recommends sha256 checksums for files in versioned datasets. Source
- Datasheets for Datasets asks dataset creators whether the dataset contains errors, sources of noise or redundancies, and to describe them. Source
See if your company qualifies
A short company assessment. No data uploads are needed.