Validation rules

UBL-DT-06 — UBL rule

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).

Related rules

  • UBL-DT-07 — An embedded attachment (cbc:EmbeddedDocumentBinaryObject) is missing its filename attribute — EN 16931…
  • 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.