Media type is missing from the embedded attachment · UBL-DT-06
- Severity · Error
- Applies to · UBL
- Editorial review pending
The UBL export contains an embedded file. The check expects the XML element holding the file contents to carry the mimeCode attribute.
As of
Who can correct it?
The invoicing software provider can correct the export.
How to fix it
- Find the element ending in BinaryObject, for example cac:Attachment/cbc:EmbeddedDocumentBinaryObject.
- Set the actual value for mimeCode on the attachment and export the file again.
Rule text and source
Paraphrase · An element whose name ends in BinaryObject must carry the mimeCode attribute.
Message to the sender
Hello,
rule UBL-DT-06 was triggered when checking electronic invoice {invoiceNumber}. An embedded file is missing the mimeCode attribute. Could you check the export and send us a corrected file?
Kind regardsExample
The embedded document has no mimeCode attribute. The corrected export includes it, for example with application/pdf when that value describes the actual attachment.
UBL
cac:Attachment/cbc:EmbeddedDocumentBinaryObject
Fails the rule
<cbc:EmbeddedDocumentBinaryObject filename="details.pdf">JVBERg==</cbc:EmbeddedDocumentBinaryObject>
Corrected
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/pdf" filename="details.pdf">JVBERg==</cbc:EmbeddedDocumentBinaryObject>Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17