Validation rules

UBL-DT-07 — UBL rule

An embedded attachment (cbc:EmbeddedDocumentBinaryObject) is missing its filename attribute — EN 16931 requires a file name for every embedded document (BT-125).

Rule
UBL-DT-07 — official EN 16931 / XRechnung rule
Severity
error
Detected by
tier 3 — KoSIT validator (authoritative)
Reachability
Only reachable when validating your own XML — normbill-generated documents cannot trigger it

The request schema requires filename whenever content_base64 is set, and the serializer always writes the filename attribute.

How to fix it

Add filename to the binary object, e.g. filename="rechnung-anlage.pdf".

UBL-DT-07 auf Deutsch — was bedeutet der Fehler?

Der KoSIT-Validator lehnt die Rechnung ab, weil einer eingebetteten Anlage (cbc:EmbeddedDocumentBinaryObject) das filename-Attribut fehlt — EN 16931 verlangt für jedes eingebettete Dokument einen Dateinamen (BT-125).

So beheben Sie den Fehler

Ergänzen Sie filename am Binärobjekt, z. B. filename="rechnung-anlage.pdf".

Related rules

  • UBL-DT-06 — An embedded attachment (cbc:EmbeddedDocumentBinaryObject) is missing its mimeCode attribute — the receiver…
  • UBL-DT-01 — An amount carries more than two decimal places. Every UBL amount element is limited to two fraction digits —…

Official sources

Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.

Or try it live: drop any XRechnung XML on the free validator — same KoSIT-backed report, no account.

Spotted something?

Bug, missing feature, wrong validation result — tell us. The page you're on is attached automatically; email optional.