Validation rules
UBL-DT-07
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".
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
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.