InvoiceGlass

File name is missing from the embedded attachment · UBL-DT-07

  • 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 filename attribute.

As of

Who can correct it?

The invoicing software provider can correct the export.

How to fix it

  1. Find the element ending in BinaryObject, for example cac:Attachment/cbc:EmbeddedDocumentBinaryObject.
  2. Set the actual value for filename on the attachment and export the file again.

Rule text and source

Paraphrase · An element whose name ends in BinaryObject must carry the filename attribute.

Message to the sender

Hello,

rule UBL-DT-07 was triggered when checking electronic invoice {invoiceNumber}. An embedded file is missing the filename attribute. Could you check the export and send us a corrected file?

Kind regards

Example

The embedded document has no filename attribute. The corrected export includes it, for example with details.pdf when that value describes the actual attachment.

UBL

cac:Attachment/cbc:EmbeddedDocumentBinaryObject

Fails the rule
<cbc:EmbeddedDocumentBinaryObject mimeCode="application/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

Validate a file