DIR eCPR XML errors: why uploads fail, and the mistakes that don't
A V2 file can fail in two ways: DIR rejects it, or DIR accepts it with wrong numbers. The second kind is worse — it becomes your certified record.
Errors that make DIR reject the file
| Problem | Fix |
|---|---|
Missing <CPR:version>2.0 or old V1 namespace | The file is V1 or half-converted. Convert it to V2. |
| PWCR is "NA" or not 10 digits | Use your 10-digit PWCR number from the DIR portal. |
| V1 fields left in (contractorFEIN, contractorLicense, projectName, projectLocation…) | Delete them — V2 doesn't allow them. |
| Elements out of order | V2 is strict. Employee order: firstName, lastName, middleName, address, ssn, itin, notes, classifications, payments, deductions, earnings. |
Classification without a name attribute | Every <CPR:classification name="…"> needs a name. One missing name fails the file. |
| SSN with dashes or spaces | 9 digits only: 123456789. Workers without an SSN: put the ITIN in itin. |
| Not exactly 7 days, or day 7 ≠ week ending | Always 7 day elements, id 1–7, consecutive dates, the last one equal to forWeekEnding. Use 0.0 for days off. |
| More than 2 decimals, commas or "$" in numbers | 8.25, not 8.125, 1,200.00 or $1200. |
| Apprentice without a level / "Journeyman" capitalized | journeyman or apprentice in lowercase; apprentice level 1–10. |
| Both fringe "paid to employee" and "paid to plan" are false | At least one must be true. |
| Duplicate SSN | One employee block per worker; several crafts go in as several classifications. |
| More than 24 hours in a day, or totals ≠ sum of days | Fix the hours; weekly totals must equal the daily sum. |
| More than 500 employees | Split into several files. Over 250 can't be uploaded as a draft. |
Mistakes DIR stores without complaint
DIR's V2 FAQ is explicit: passing the schema check doesn't mean the data is correct. These fields are stored as sent:
- totalDeductions must equal the sum of the deduction lines — not including travel/subsistence or fringe.
- Total hourly rates = base rate + the fringe amounts for that classification. (Even DIR's own V2 sample file uses placeholder totals that don't follow this rule — fine for a sample, not for your payroll.)
- totalHrlyPayRateStraightTime equal to gross wages means a mapping error — it's an hourly rate.
- Identical deductions for many workers usually means deductions were copied from one record.
- Gross and net are stored as entered.
The free validator checks all of the above in your browser and explains each problem in plain English.
Check your file before you upload
Free, in your browser — the file is never uploaded. Converts V1 files and payroll spreadsheets to V2.
Sources: DIR Certified Payroll Reporting, eCPR XML Guidelines V2, V2 Submission FAQ, eCPR-v2.xsd. Last checked November 23, 2026.