Sub topic 15
Data quality and record keeping
Ongoing monitoring only works if the data behind it is right. This chapter assumes you know how transaction monitoring, ongoing screening, and periodic and event-driven reviews work, and that you can read basic Python. It covers what "good data" means for these controls, the errors that cause the most damage, and how to keep records so that a decision can be reconstructed years later.
Why data quality is a control, not an IT concern
Every monitoring control compares one thing with another. A volume rule compares actual inflow with the expected inflow in the customer profile. Screening compares a name and date of birth with a watchlist. A periodic review compares what the file says with what the customer confirms today. If the profile is wrong, each of these comparisons produces a wrong answer, and nothing in the output tells you so.
Poor data fails in two directions:
- Missed risk. A customer's occupation is recorded as "N/A", so no behavioural scenario can be matched to it. A name is stored in a truncated field, so a sanctions match is never raised.
- Wasted effort. An expected monthly inflow of 0 was left as a default, so every deposit breaches the volume rule. Analysts then spend their time closing false alerts.
Supervisors therefore treat data quality as part of the control. A monitoring system that is well designed but fed with incomplete data is usually judged ineffective.
Which data matters most
Not every field carries the same weight. Concentrate quality effort on the fields that monitoring and review logic read.
| Data element | Used by | Typical failure |
|---|---|---|
| Legal name, aliases, date of birth | Ongoing screening | Truncation, transliteration differences, missing aliases |
| Country of residence, nationality, country of operation | Risk rating, screening | Free text instead of a code list; outdated after a move |
| Expected activity (volume, counterparties, countries) | Transaction monitoring | Blank, default, or never updated after onboarding |
| Occupation, nature of business | Scenario selection, peer comparison | Generic values such as "self-employed" |
| Beneficial ownership | Screening, risk rating | Ownership changed but screening still covers old owners |
| Source of funds and wealth | Periodic review | Recorded as a label, with no supporting document |
| Risk tier and last review date | Review cadence | Tier changed without the next review date being recalculated |
How data flows and where it breaks
Data moves from the customer, through the KYC file, into the monitoring and screening systems, and back out as alerts and review decisions. Errors enter at each handoff.
Common breakpoints:
- Onboarding capture. Staff skip optional fields, or the form accepts placeholders.
- System migrations. Fields are mapped to the wrong target, or free text is cut at a shorter maximum length.
- Multiple sources. The core banking system and the KYC tool disagree on the customer's address. Monitoring reads one, and the review reads the other.
- Stale data. The customer changes employer or country, and nothing prompts an update until the next scheduled review.
Automating basic checks
Three checks cover many problems: completeness, staleness, and retention. The code below implements all three. Treat the field list, the 365-day age limit, and the five-year retention period as illustrative. Each institution sets these in policy and under local law.
from datetime import date
REQUIRED_FIELDS = (
"legal_name",
"date_of_birth",
"country_of_residence",
"occupation",
"expected_monthly_inflow",
"source_of_funds",
)
PLACEHOLDERS = (None, "", "N/A", "UNKNOWN")
def missing_fields(record: dict) -> list:
"""Return required fields that are absent or hold a placeholder value."""
return [f for f in REQUIRED_FIELDS if record.get(f) in PLACEHOLDERS]
def profile_is_stale(last_verified: date, today: date, max_age_days: int = 365) -> bool:
"""A profile is stale when it was last verified more than max_age_days ago."""
return (today - last_verified).days > max_age_days
def retention_end(relationship_end: date, years: int = 5) -> date:
"""Earliest date records may be deleted. A 29 February end date rolls to
1 March, so the record is never kept for less than the required period."""
try:
return relationship_end.replace(year=relationship_end.year + years)
except ValueError:
return date(relationship_end.year + years, 3, 1)
def can_delete(relationship_end: date, today: date, legal_hold: bool) -> bool:
return (not legal_hold) and today >= retention_end(relationship_end)
record = {
"legal_name": "A. Example",
"date_of_birth": "1985-04-12",
"country_of_residence": "GB",
"occupation": "N/A",
"expected_monthly_inflow": 5000.0,
"source_of_funds": "",
}
print(missing_fields(record)) # ['occupation', 'source_of_funds']
print(profile_is_stale(date(2025, 6, 1), date(2026, 11, 27))) # True
print(retention_end(date(2024, 2, 29))) # 2029-03-01
print(can_delete(date(2020, 1, 15), date(2026, 11, 27), legal_hold=True)) # FalseTwo design choices are worth noting. The retention function errs towards keeping the record, because deleting early is a breach while deleting late is only untidy. The can_delete function also checks for a legal hold. An open investigation or a pending suspicious activity report can override a normal deletion date.
Record keeping: what to keep and why
Records have two purposes. They let you rebuild a past decision for an auditor, regulator, or law enforcement request. They also show that a control actually ran, not just that it exists on paper.
Keep, at minimum:
- Identification and verification records. Documents, verification results, and the date and method of each check.
- Review files. Every refresh, including what changed, who approved it, and the outcome.
- Alert records. The rule that fired, the data at the time, the analyst's notes, and the closure rationale.
- Escalations and reports. Internal escalations and the decision on whether to file, including decisions not to file.
- Screening evidence. Which list version was used, the match result, and the disposition of each potential match.
- Model and rule changes. What changed, why, who approved it, and when.
Many jurisdictions require retention for at least five years after the relationship ends or after an occasional transaction. Some require longer, and data protection law sets limits on keeping personal data. Check the rules that apply to your institution.
Make records reconstructable
A record is only useful if it shows the state of things at the time of the decision. Overwriting a field destroys that. Prefer these practices:
- Store changes as new, dated versions of a record, not as edits in place.
- Log who changed a value and why.
- Keep a snapshot of the profile and rule configuration that were in force when an alert was raised.
- Record the date each piece of information was obtained, not only the date it was entered.
Common errors
- Placeholder values pass validation. "N/A" and "UNKNOWN" satisfy a not-null check. Reject them explicitly, as the code above does.
- Defaults treated as facts. A default expected inflow of 0 or 1,000 makes monitoring thresholds meaningless. Mark the field as unconfirmed so that rules can skip it or treat it as higher risk.
- No reconciliation between systems. Compare record counts and key fields between the source system and the monitoring feed on a schedule. Missing accounts in the feed mean unmonitored customers.
- Risk tier changes without recalculating the review date. Moving a customer from low to high risk should bring the next review forward.
- Records kept but not retrievable. Archives that need weeks to search do not satisfy a request that has a deadline of days.
- Fixing data silently. Corrections without an audit trail make later decisions impossible to explain.
Putting it together
During a periodic review, the data quality gate should run first. If required fields are missing or stale, the refresh must collect them before any risk judgement is made. After the review, the new values replace the old as a new dated version. The old version stays in the record store, so a later reader can see what you knew at each point.
Exercise
A customer's file shows an expected monthly inflow of 0, set by default at onboarding. Transaction monitoring raises an alert on almost every deposit. Give two actions: one to fix this customer's file, and one to prevent the problem for other customers. Explain why the old value should not simply be overwritten.
Show answer
To fix the file, collect the real expected activity from the customer at a review, and record it as a new dated version with the source. To prevent the problem, remove the default value, reject placeholders at capture, and run a query that flags every active customer whose expected activity is zero or unconfirmed, then add that check to the data quality gate. The old value should be kept as a prior version because the earlier alerts were decided against it. Without it, an auditor cannot reconstruct why those alerts were raised or closed.
Exercise
A customer relationship ended on 29 February 2024. Policy requires five years of retention, and there is an open legal hold. When may the records be deleted, and what does the code in this chapter return for each condition?
Show answer
Records may not be deleted while the legal hold is open, whatever the date. Once the hold is released, the earliest deletion date is 1 March 2029, which is what retentionend returns for that end date. candelete returns False while legal_hold is True, and returns True only when the hold is released and today is on or after 2029-03-01.