Enterprise Document IntelligenceCase studies← Back to the case

Claims ETL

From a messy client Excel to a clean base: detection, column recognition, validation, normalisation.

1 The file arrives… messy

Headers with trailing spaces, a line break, inconsistent labels, one corrupted date column.

Header receivedProblem
'Notification date 'trailing space
'Loss\n Date'line break inside the header
'Payment Amount 'trailing space + floats to round
'Covid claims 'values covid vs cvid (typo)
'Loan Type'3 spellings: Car loan / Car Loan / Car Loan
'Effective date'every value = 1905-07-11 (corrupted Excel serial)

2 Column recognition

Each header is cleaned then matched to the target schema by similarity. A confidence score, to be confirmed by the client.

Source columnTarget fieldConfidence
Notification dateβ†’notification_date🟒 sure
Loss Dateβ†’loss_date🟒 sure
Payment Amountβ†’payment_amount🟒 sure
Loss Typeβ†’loss_type🟒 sure
Covid claimsβ†’covid_flag🟒 sure
Loan Typeβ†’loan_type🟒 sure
Effective dateβ†’effective_date🟒 sure

3 Amount & date validation

Amounts are read whatever the separators (comma/dot, symbols). Out-of-range dates are flagged, not imported silently.

FieldVerdict
payment_amount19/19 recognised
notification_date, loss_date19/19 recognised
effective_date⚠️ 19/19 = 1905-07-11 β€” suspicious dates (Excel serial), to check before import

4 Label normalisation

We group the spellings of a same label and propose a canonical one. The client keeps control: they know their labels best.

FieldSpellings receivedProposed canonical
loan_typeCar loan, Car Loan , Car Loan→Car Loan case/spacing
covid_flagcovid (18), cvid (1)β†’covid close spelling
loss_typeDeath Any Cause (17), DAC (1)β†’Death Any Cause acronym

5 Clean base

Typed columns, numeric amounts, unified labels, suspicious dates flagged. Ready for Excel/CSV export and for the SQL agent.

notification_dateloss_datepayment_amount loss_typecovid_flagloan_type
2022-01-142021-11-2719,714.14Death Any CausecovidCar Loan
2021-07-052021-06-1521,235.68Death Any CausecovidCar Loan
2021-03-162021-03-0441,969.60Death Any CausecovidPersonal Loan

(3 of the 19 rows, after cleaning.)

The client confirms every step before export: nothing is normalised by force. The goal is a clean base, with the labels the client recognises.
Static demonstration (frozen data), not the live tool. For a tool on your own documents, contact us. Β· Case studies