docs / errors / E04

E04 Record count differs from `n`

Constant
E_COUNT_MISMATCH
Specification
§5, §9
Lenient mode
Recorded and the document is built anyway

n records were declared but another number of valid lines was read. In lenient mode the document is built anyway and this error is recorded; the streaming reader exposes it as missing.

How to see it

In the playground, “Editor & validator” tab, the “Inject 3 errors” button triggers E04, E05, E08 and E09 on the loaded example. From the command line, mini diagnose archivo.mini prints a JSON report with every error and the lines to regenerate.

← E03E05 →