Map TPA claims to Duck Creek
Insurance United States
Maps third-party administrators’ claims files straight to a Duck Creek claims import layout, cleanses names, addresses and dates, checks each claim, and produces client control totals and indemnity by state.
Based on a Duck Creek claims import layout. 50 of its 98 columns come from a Duck Creek claims header list, so check the rest against your own Duck Creek setup.
- 4validation rules
- 9pipeline stages
- 98Duck Creek columns
- 2 minto build and check
See it in Quantemplate
The pipeline

The checks

The Duck Creek input

What it checks
4 rules 1 Fail 3 Warning
- ClaimsClaim and policy numbers, accident state, reserves on closed claims, and negative incurred 1 Fail, 3 Warning 4
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 check and its formula is listed in VALIDATIONS.md in the download. Date Cleanse also warns about each date it can’t read, such as the 0 that TPA files often use for no date.
How the pipeline works
- Stages 1–2 Import and map Map each TPA sheet straight to the Duck Creek columns, then stack them
- Stage 3 Cleanse and derive Work out the TPA and line of business, and clean claimant names, addresses, claim status and state
- Stage 4 Check Count claims by line of business, run the 4 checks, and turn dates into ISO dates
- Stages 5–6 Duck Creek input Set Litigated, loss state and coverage code, and keep only the 98 Duck Creek columns
- Stages 7–8 Control totals A client control record for one TPA, and the other TPA’s claims on their own
- Stage 9 By state Indemnity incurred by incident state
The control totals
Stage 7 gives one control record for each of a TPA’s clients, record type 8, so you can reconcile what the TPA sent with what reaches Duck Creek. It keeps one TPA’s claims, totals them by client, and maps the totals to the 43 columns of the control total headers dataset:
Columns |
What they hold |
|---|---|
TPAVENDR |
The TPA’s client number, as 5 digits |
RECCNT, WCRECCNT, LIRECCNT |
Claims in all, workers’ comp claims and liability claims |
WCITDIND, WCITDMED, WCITDEXP |
Workers’ comp indemnity, medical and expenses to date |
WCCURIND, WCCURMED, WCCUREXP |
Workers’ comp indemnity, medical and expenses incurred |
LIABITD, LIABEXP, LIABCUR, LIABCUREXP |
Liability incurred and expenses, to date and current |
WCSALSUB, WCCURSAL, LIABSAL, LIABSUB, LIABCURSAL, LIABCURSUB |
Salvage and subrogation recoveries |
FILLER to FILLER19 |
Padding between the fields of the fixed layout |
Stage 8 keeps the other TPA’s claims on their own, ready for the layout that TPA reconciles to.
What’s in the download
- The 4 checks, and a table of every check with its formula and the rows it should flag
- Four test TPA files from two TPAs, a liability and a workers’ comp file each, in two different layouts, with claims built to trip each check
- The Duck Creek layout with 100 rows of test data, the import layout with the pipeline’s working columns, the control total headers and US state codes
- The rows, check results, control totals and state totals the test files should give
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
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 Duck Creek claims pipeline from the duck-creek-claims folder.
- Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 2 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 real TPA files
- Add your TPA files as inputs to stage 1, and map each file to the import layout in stage 1’s Map Column Headers step. A workbook’s sheets come in as separate inputs, so map each sheet.
- Add a line for each TPA to stage 3’s AgencyRef calculation, which works out the TPA from the file name, and point stages 7 and 8 at your TPAs. The line of business comes from the file or sheet name too: WC for workers’ comp, anything else for liability.
- Check the Duck Creek columns against your own Duck Creek setup, and change the target dataset to match. 50 of the 98 come from a Duck Creek claims header list.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- The layout isn’t from a published Duck Creek specification, so check it before you load anything into Duck Creek.
- Dates of 0, which TPA files often use for no date, come out blank, and Date Cleanse warns about each one.
- The control record follows one TPA’s control file layout. Other TPAs may want a different one.
- The TPAs, clients and claims in the test files are fictional.
- 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.