NCID private motor return checks
Insurance Ireland
Checks an insurer’s annual private motor return to the Central Bank of Ireland’s National Claims Information Database before it’s submitted: that every sheet’s quarters, codes and values are ones the workbook accepts, that each sheet reports every measure and year, that injury and settled cost totals add up and settled costs fit their bands, and the workbook’s income and expenditure identities.
From the Central Bank of Ireland’s NCID Annual Private Motor Data Submission Requirement 2026 and its 2026 data template: the lookup lists, the Validations sheet and the income and expenditure Validation (IDs)
- 81validation rules
- 14pipeline stages
- 8workbook sheets
- 4 minto build and check
See it in Quantemplate
The pipeline

The test run’s checks

The Cells checked output

What it checks
81 rules 41 Fail 40 Warning
- Cover and filesThe file names, the cover, and that each sheet reports every measure and year it should 6 Fail, 6 Warning 12
- Premium and ultimatesQuarters, measures, cover and claim types and values on the Premium And Exposure and Ultimates sheets 8 Fail, 2 Warning 10
- Historic aggregate claimsAccident and development years, measures, claim types and values 5 Fail, 2 Warning 7
- Historic settled claimsQuarters and their order, codes, bands and judicial guideline flags that suit the claim type, and the five-way splits from 2019 15 Fail, 4 Warning 19
- PPO, income and narrativeThe PPO indicator, income and expenditure lines and years, and narrative comments of up to 3,900 characters 7 Fail, 1 Warning 8
- Claims totals and bandsInjury claims either side of 250k add up to their total, settled costs add up to their parts and fit their bands 0 Fail, 7 Warning 7
- Income and expenditure totalsThe workbook’s Validation (IDs) for each year, for Local GAAP and IFRS 17 lines 0 Fail, 18 Warning 18
A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.
How the pipeline works
- Stage 1 Read return Detect each file’s header and add its file name to every row
- Stage 2 Return Stack the eight sheets
- Stage 3 Rows Work out each row’s sheet from its file name, its key and measure, whether its value is a number and its codes are in their lists, and the amounts its totals add up
- Stages 4–8 Counts Count the rows with each key, and the measures and years each sheet reports, and bring the counts onto every row
- Stages 9–10 Check return Run the 56 checks on single rows in five Validate operations, and output every row
- Stages 11–12 Cells Add up the rows that make each total, run the 25 checks on totals, bands and income and expenditure identities, and output every cell
- Stages 13–14 Rows by file The number of rows in each file, and the sheet it was read as
The return’s sheets
Each of the workbook’s sheets is uploaded as a CSV file holding its data columns, with the workbook’s column names as the header, and not the lookup columns to their right. The pipeline works out which sheet a file is from a word in its name, in any case.
Sheet |
Word in the file name |
Columns |
|---|---|---|
Cover |
COVER |
Institution Number, Return Basis, Return Basis Name, Reference Date |
Premium And Exposure |
PREMIUM |
Quarter, PeMeasureID, CoverTypeID, Value |
Ultimates |
ULTIMATE |
AccidentQuarter, UltMeasureID, ClaimTypeID, Value |
Historic Agg Claims |
AGG |
AccidentYear, DevelopmentYear, HaMeasureID, ClaimTypeID, Value |
Historic Settled Claims |
SETTLED |
SettledQuarter, AccidentQuarter, ReportedQuarter, HsMeasureID, ClaimTypeID, SettlementChannelID, SettledCostBandID, CompensationBandID, JudicialGuidelineID, Value |
PPO Claims |
PPO |
PPOIndicatorID |
Historic Income and Expenditure |
INCOME |
HistExpMeasureID, Year, Value |
Narrative |
NARRATIVE |
DataSetID, Comment |
Codes are the whole numbers from each sheet’s lookup column, such as 3 for third party injury in total. Quarters are written yyyymm, with the quarter’s last month, such as 202512. Values are digits, with a minus sign or a decimal point if needed, and no thousands separators or euro sign. The cover is one row, and its reference date is written dd/mm/yyyy.
Fail is what the workbook’s own Validations sheet counts as an error: the return’s status must be Valid before the Central Bank’s Online Reporting system accepts it. The NCID team’s checks in section 3 of the submission requirement, which it makes once a return is in, are warnings.
What’s in the download
- The 81 rules as JSON, and a table of every rule with its formula, notes and source
- A fictional insurer’s 2026 return as eight CSV files, one per sheet: 8,880 rows, which pass every rule
- A test return with a case for each rule, more income and expenditure cases, and a file whose name isn’t a sheet
- The rows each rule should flag on the test return
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline, and the Python scripts that generate everything in the download
The Central Bank’s data template and submission requirement aren’t included. Each rule’s source is listed in VALIDATIONS.md, and both documents are on the Central Bank’s NCID reporting requirements page.
Build it
- Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
- With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the NCID private motor pipeline from the ncid-private-motor folder. Test it with the test return and the clean return and compare the results with the expected ones.
- Claude uploads the test return’s files, builds the 14 stages and checks the test return and the clean one. This takes around 4 minutes.
The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.
Using your own return
- Copy each sheet’s data columns, with their header row, into a CSV file. Upload the eight files to stage 1 under the test files’ names, which replaces them, or under names of your own that contain each sheet’s word, then tick them in stage 1’s inputs and untick the test files.
- Replace the test-only files
motor-income-and-expenditure-cases.csvandmotor-claims.csvwith files holding only a header, as the clean run does, or remove them from the pipeline’s uploads. Their rows are there to fail checks. - Check one return at a time, with one file for each sheet. Rows are only compared with others in the same file, so a sheet split over two files isn’t checked for rows given twice, and its totals aren’t added up across them.
- Write the reference date and quarters as text. A spreadsheet may save them in another format.
- Stage 2 stacks stage 1’s outputs with Linked Stages on, so nothing after it needs changing.
- Check the validation report’s Fail rules first: they’re what keeps the return’s status from being Valid. Warnings are what the NCID team is likely to query.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It checks the annual private motor return. The mid-year private motor return and the employers’ and public liability returns have their own workbooks.
- It checks the sheets’ data, not the workbook’s formatting or the Online Reporting system’s own checks of the file.
- Column headers aren’t checked. Use the workbook’s column names: the checks find each column by its name, and see a misspelt one as empty.
- The years are the 2026 return’s: 2011 to 2025, settled quarters from 2015, and accident and reported quarters from 2000. A later return needs them changed in
scripts/ncid_model.py. - Bands are checked on each cell’s average, so a claimant in the wrong band can be missed when the average is still within it. Damage claims, band 17, aren’t checked against amounts.
- Totals pass within €10, and claim counts within 0.5.
- The NCID team also compares a return with the company’s previous one, and checks trends such as loss ratios and average costs for reasonableness. Those need earlier returns and judgement, so they aren’t here.
- Quantemplate reads a CSV file without a byte-order mark as Windows-1252, so save narrative comments with accents or a euro sign as UTF-8 with a byte-order mark, or as Windows-1252, for their length to be counted right.
- The insurer and its figures are made up, and so is its institution number, 99123.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.