Validation rules
UBL-DT-06
An embedded attachment (cbc:EmbeddedDocumentBinaryObject) is missing its mimeCode attribute — the receiver cannot tell what file type the binary data is.
- Rule
UBL-DT-06— 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
UBL 2.1's XSD already declares mimeCode as required, so this usually surfaces earlier as an XSD error (cvc-complex-type.4). The request schema requires mime_type whenever content_base64 is set, and the serializer always writes mimeCode.
How to fix it
Add mimeCode to the binary object, e.g. mimeCode="application/pdf".
UBL-DT-06 auf Deutsch — was bedeutet der Fehler?
Der KoSIT-Validator lehnt die Rechnung ab, weil einer eingebetteten Anlage (cbc:EmbeddedDocumentBinaryObject) das mimeCode-Attribut fehlt — der Empfänger kann den Dateityp der Binärdaten nicht erkennen.
So beheben Sie den Fehler
Ergänzen Sie mimeCode am Binärobjekt, z. B. mimeCode="application/pdf". Hinweis: Das UBL-2.1-Schema verlangt mimeCode bereits, daher erscheint der Fehler meist schon als XSD-Verletzung (cvc-complex-type.4).
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.