Skip to content
RegisterBench

W1-801 - Header column codes must be defined in the taxonomy (Additional Plain-csv)

ESA technical check 801: every column code in a template csv header must be defined in the taxonomy json files (DPM), e.g. c0010 in b_01.02.json.

Layer
W1a
Category
Additional Plain-csv
Severity
blocking
Taxonomy version
eba-4.0-errata5

Last reviewed:

Content last changed:

Official control text (EBA, verbatim)

All the header column codes must be defined in the taxonomy json files (in DPM)

What this rule checks

The first line of every template data file (b_XX.YY.csv) is a header made of column codes. The check requires every header code to be defined in the taxonomy json files (in the DPM). Measured in the official sample package: the header of b_01.02.csv is c0010,c0110,c0100,c0090,c0080,c0070,c0050,c0040,c0030,c0060,c0020 - all codes defined in the b_01.02.json file of the taxonomy package.

The check is about the header of the file, not about the values below it: closed dictionary value lists are checked by the separate control 503 on the "DPM Technical Checks" sheet. A header code unknown to the taxonomy violates 801; a wrong dictionary value in a data cell does not.

In RegisterBench the headers are generated from the taxonomy metadata by the package writer (classes TemplateCsvSerializer and EsaPackageContentBuilder). On import of a foreign package wrong headers go to the import error report.

This is an ESA technical check (layer W1a, severity: blocking). If it fails, the package is technically rejected on receipt (feedbackMain = REJECTED). RegisterBench has no runtime finding for it: the package writer satisfies it by construction, which is proven by golden tests, not by a validation message.

Most common causes

  • The csv was opened in a spreadsheet and saved back with an edited header - a code was retyped, replaced with a human label, or an extra column was added.
  • A package built by another tool writes column labels or its own field names into the header instead of the cNNNN codes.
  • A truncated or mistyped code after manual editing (c010 instead of c0010) - such a code is not defined in the DPM.

How to fix it, step by step

  1. If the package was exported by RegisterBench and not edited afterwards, this check cannot fail - first check whether a csv was re-saved by a spreadsheet or edited by hand.
  2. Open the flagged file and read its first line: only column codes in the measured form (c0010, c0020, ...), separated by commas, no labels, no extra columns.
  3. Compare the header with the taxonomy json file of the same table in the taxonomy package (for b_01.02.csv: b_01.02.json).
  4. Do not patch the header by hand - export the package again from RegisterBench; the header is rebuilt from the taxonomy metadata.

Example: fails vs passes

Fails - the header carries something that is not a defined column code:

Header of b_01.02.csv (first line) Problem
c0010,c0110,c0100,c0090,c0080,c0070,c0050,c0040,c0030,c0060,c0120 c0120 is not among the codes defined for this table (the measured header ends with c0020)
lei,name,country human field names instead of the defined cNNNN codes

Passes - the measured sample header:

Header of b_01.02.csv (first line) Result
c0010,c0110,c0100,c0090,c0080,c0070,c0050,c0040,c0030,c0060,c0020 every code is defined in b_01.02.json of the taxonomy package
  • 802 - no column can be reported twice in a header.
  • 720 - the filenames of the same data files must be valid table names.
  • 503 - closed dictionary value lists are checked by 503 ("DPM Technical Checks" sheet), not by 801.
  • 809 - a csv row that cannot be parsed at all is a formatting problem (809), not a header-code problem.

This page describes what the software does. It is neither legal advice nor an interpretation of any regulation, and using the product does not by itself make any submission complete, correct or acceptable to any authority. The responsibility for what is filed stays with the entity that files it.