Finance Engineering & Data Infrastructure
Three kinds of dirty data that break financial reports: amount, FX and time
Seamline Editorial · Finance content team · Updated
TL;DR
Most finance data errors are not exotic. They are an amount that lost a fee, an FX rate applied on the wrong date, or a timestamp in the wrong period. Each needs a different check and a different fix. AWS Glue Data Quality expresses checks as DQDL rules, 25-plus of them, and the same rule-per-failure thinking applies to money data long before it reaches a report.
Three failure classes cause most bad finance numbers
When a report is wrong, the cause is usually boring. An amount is missing a fee or double-counted. A currency was converted at the wrong rate or on the wrong date. A transaction landed in the wrong accounting period because of a time-zone mix-up. These are not modeling failures; they are data-quality failures at the source.
The reason they persist is that they all produce plausible numbers. A report with a missing fee still balances. A wrong FX rate still produces a tidy total. The checks have to look for the specific failure, not just for whether the pipeline ran. AWS data-quality guidance frames this as explicit validation rules over data, and that is the right unit of thought for finance.
Express each check as a rule, the way DQDL does
AWS Glue Data Quality lets you define expectations in a declarative language called DQDL, with a library of more than 25 rule types: completeness, uniqueness, ranges, pattern matches, referential checks and more. The value of the approach is that a rule is explicit, versioned and repeatable. You are not relying on someone noticing a strange number.
Finance teams do not need Glue specifically to borrow the idea. Translate each failure class into a rule with a name and an action: is the column present, is the value in range, does the identity hold, is the currency valid, does the date fall inside the period? A rule that fails should quarantine the rows, not average them into the total.
- Completeness: required money columns are present and non-null.
- Uniqueness: no duplicate source event ids.
- Identity: gross − fee = net on every event.
- Validity: currency codes and sign conventions are allowed values.
- Referential: every event ties to a payout and a valid period.
| Class | Detection rule | Fix |
|---|---|---|
| Amount | gross − fee = net; unique source id; fee ≥ 0 | Re-fetch the source event; never plug a guessed fee |
| FX | Currency code valid; rate date = event date; one basis | Restate with the rate for the event date; keep the original |
| Time | occurred-at inside the period; zone recorded | Normalize to the reporting zone; keep the original stamp |
Amount errors: find them with identities, not with totals
A total can look right while the rows inside it are wrong: one fee dropped, another double-counted. The check that catches this is a per-row identity: gross minus fee must equal net, to the cent. Add uniqueness on the source event id and a sign rule so refunds are negative and fees do not flip positive. These rules are cheap and they fail loudly.
The fix is to re-fetch the affected source event and rebuild the row. Never fill a missing fee with an average or a plug. A guessed number that passes the identity is worse than a missing one, because it now looks validated and will survive every future check. Quarantine the row and fix it from source.
Balancing totals hide wrong rows
Balancing totals hide amount errors. Two wrong rows can cancel out and leave the report looking perfect. Check the identity on every row, not just the sum at the bottom.
FX errors: the rate date matters more than the rate value
Most FX mistakes are not a wrong number, they are a right number on the wrong date. A rate is valid for a specific day; applying today’s rate to last month’s sale changes reported revenue and can move it across a materiality threshold. A second failure is mixing bases in one total: some rows converted, some left at source currency.
Validate that every row has a currency code, that the rate used carries the event date, and that all rows in a report share one reporting currency basis. Remediation is a restatement: re-convert with the correct dated rate and keep the original value and rate id so the change is auditable. AWS data-quality guidance treats such domain rules as validations over the data, which is exactly how finance should treat FX.
| Item | Source currency | Rate date | Reporting amount |
|---|---|---|---|
| Sale | 100 USD | Event date, 7.20 | 720.00 |
| Same sale, wrong rate date | 100 USD | Month-end, 7.35 | 735.00 |
| Difference | n/a | n/a | 15.00 |
Time errors: a clock shift is a period error
A timestamp in the wrong zone moves revenue from one day to another and, at a boundary, from one month to another. That breaks both reporting and reconciliation, because a payout and its events may land in different periods. The detection rule is simple: occurred-at must fall inside the expected period, and every row must carry a time-zone or an explicit normalization.
Fix by normalizing to the reporting zone at ingestion and keeping the original stamp beside it. Do not silently reinterpret a local time as UTC. If a batch arrives with an ambiguous zone, quarantine it and confirm with the source. A period error corrected after close needs a restatement note, not a quiet overwrite.
The finance-specific rule
Store two clocks: occurred-at for reporting and recorded-at for matching the platform’s own report. When the two disagree across a boundary, the difference explains a reconciliation gap that would otherwise look mysterious.
Validation only works when a failed rule stops the report
A rule that logs a warning and lets the number through is not a control. For finance data, a failed critical rule must block publication: quarantine the rows, alert a named owner, and resolve the finding before the metric is published. Keep a record of every rule failure and its resolution, because that record is what an auditor will want to see.
Seamline’s published reconciliation detectors cover the money-layer checks: fee residuals, refund gaps and payout mismatches per transaction, each traced back to the source event. They complement rule-based validation by checking that the events, once clean, actually tie to the cash. Validation makes rows trustworthy; reconciliation makes the total trustworthy. Finance needs both.
FAQ
What is DQDL?
The Data Quality Definition Language used by AWS Glue Data Quality to declare validation rules over data: completeness, uniqueness, ranges, patterns and more, with more than 25 rule types. You do not need Glue to use the idea; the point is one explicit, repeatable rule per failure.
Why not just use a data-quality score?
A score tells you something is wrong but not which number to trust or how to fix it. Finance needs named rules per failure class, such as amount, FX and time, with a quarantine and a repair action attached to each.
Should a failed rule block the monthly report?
A critical rule should. If a required money column is missing or a payout fails to tie, the number is not publishable. Quarantine the rows, alert an owner, resolve, and keep the record. Non-critical rules can warn, but never average a bad row into a total.
How do I fix a wrong FX amount?
Restate it with the rate for the event date, not the report date, and keep the original value and rate id so the change is auditable. Do not overwrite silently. Also confirm every row in the report shares one reporting currency basis.
See money-layer checks on sample data
The demo runs Seamline’s published reconciliation detectors over sample store data: fee residuals, refund gaps and payout mismatches, each traced back to the transaction behind it.