Duplicate records in a compliance report: what to do
Find duplicate records in a compliance CSV, decide which rows should stay, remove only confirmed duplicates, and keep a clear record of every change.
You find the same person, account, or transaction more than once in a compliance report. Some repeats may be mistakes, but others may be valid entries, such as separate events linked to one account. Removing rows too quickly can make a report incomplete or harder to defend.
Use a working copy of the CSV to identify repeat records, compare their details, and remove only rows you have confirmed are duplicates. TooLab's CSV Editor can open large CSV files in your browser so you can find, sort, edit, and remove duplicate rows.
Check duplicate records in the CSV
- Make a working copy. Keep the original export unchanged. Duplicate the file in your file manager and use the copy for checking and editing.
- Open the copy in the CSV Editor. Review the column headers and confirm the file opened with the right rows and fields. The editor can work with CSV files up to 10 million rows.
- Choose what counts as a duplicate. Check the report instructions or data rules. A repeated record ID may indicate a duplicate, but only if that ID is meant to identify one unique record. A name or email address alone may not be enough.
- Find and compare repeated values. Use the editor's find and sort features to bring repeated IDs or other candidate values together. Compare the full rows, including dates, status, amounts, and any source or event fields.
- Resolve confirmed duplicates and check the output. Remove only rows that meet your duplicate rule. Before using the edited file, check its row count and spot-check several affected records against the original.
Keep a separate note of the rule you used, the rows or identifiers affected, the date of the change, and the name of the person who reviewed it if your process requires that. A copy of the original lets you verify the result later.
What the repeated records mean
The entire row appears more than once
If every field matches, the rows may be accidental duplicates caused by a repeated export, import, or data entry. Check that the report's requirements treat identical rows as duplicates before removing them. If confirmed, the CSV Editor's remove duplicates feature can help clean up repeated rows.
An ID repeats, but other fields differ
This is not automatically a duplicate. The ID might be reused across updates, or the rows may describe separate events for one case. Compare timestamps, status changes, amounts, and source fields. If the ID is required to be unique and the details conflict, flag the records for review instead of silently choosing one.
A name or email repeats
Several records can correctly belong to the same person. For example, a person may appear in separate checks or reporting periods. Use a stable record identifier and the report's definition of a record, not a name alone, to decide whether rows can be combined or removed.
No repeated values appear in your search
The values may differ because of extra spaces, different capitalization, formatting, or a different identifier. Check the relevant columns and the export process. Do not change values just to make them match unless your compliance rules allow that normalization.
How to handle confirmed duplicates
- Confirm the rule before changing rows. Use the report specification, internal procedure, or data owner to establish which fields define one unique record. If the rule is unclear, pause and ask rather than guessing.
- Compare candidate rows before removal. Sort or find the repeated identifier, then inspect all available fields. If rows have different dates, amounts, statuses, or sources, treat them as a possible conflict, not an obvious duplicate.
- Remove only rows that meet the rule. Use the remove duplicates feature for confirmed duplicate rows. If two rows share an identifier but have different details, keep them for review or resolve them through the approved process.
- Record what you changed. Note the file name, original row count, duplicate rule, number of rows removed, and any records escalated for review. Preserve the untouched original and follow your organization's retention policy.
- Verify the saved report. Reopen the edited file if practical. Check that the headers and key fields remain intact, the confirmed duplicates are gone, and unrelated records still appear. Compare the final row count with your change notes.
Keep the report easy to audit
A cleaned CSV is not, by itself, an audit trail. Keep the source export, the edited copy, and a brief change log in the location and format your organization requires. Avoid overwriting the original or putting sensitive record details in an unsecured note. If the report must be formally approved, have the appropriate reviewer confirm the duplicate rule and the removals before submitting it.
The CSV Editor works in your browser, and opened files stay on your device. Follow your organization's rules for handling confidential or regulated data, especially on a shared computer.
