InvoiceValidator.eu

UBL-DT-07

fatalEN 16931syntax binding ruleUBL

Binary object elements shall contain the file name attribute

Why it fails

An embedded binary object has no filename attribute.

How to fix it

Add filename to cbc:EmbeddedDocumentBinaryObject. Receivers write attachments to disk using it, so it must be present and unique within the invoice.

What the validator checks

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

(@filename)

Related rules

Part of UBL-DT — UBL data types.

Check your own invoice against UBL-DT-07

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