InvoiceValidator.eu

UBL-DT-06

fatalEN 16931syntax binding ruleUBL

Binary object elements shall contain the mime code attribute

Why it fails

An embedded binary object has no mimeCode attribute, so the receiver cannot tell what kind of file it is.

How to fix it

Add mimeCode to cbc:EmbeddedDocumentBinaryObject, e.g. mimeCode="application/pdf".

What the validator checks

UBL — context //*[ends-with(name(), 'BinaryObject')]

(@mimeCode)

Related rules

Part of UBL-DT — UBL data types.

Check your own invoice against UBL-DT-06

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.