Peppol BIS Billing 3.0 · rule
UBL-DT-26
What does UBL-DT-26 mean? EncodingCode attribute should not be present
Why did my invoice fail UBL-DT-26?
The encodingCode attribute should not be present on binary object elements. Embedded documents are always base64 content with only mimeCode and filename in the EN 16931 core model, so an explicit encodingCode is redundant and outside the model. Remove it.
Official rule text
EncodingCode attribute should not be present
Common causes
- Serializer adds encodingCode="Base64" to EmbeddedDocumentBinaryObject
- Using the full UBL BinaryObjectType attribute set
How do I fix it?
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="doc.pdf">JVBERi0xLjQK...</cbc:EmbeddedDocumentBinaryObject>
Related rules
UBL-DT-01 · UBL-DT-06 · UBL-DT-07 · UBL-DT-08 · UBL-DT-09 · UBL-DT-10 · UBL-DT-11 · UBL-DT-12
Check your invoice against this rule
Paste it into the live demo, or call POST /v1/validate. See the quickstart.