InvoiceGlass

An attachment has a media type outside the list · BR-CL-24

  • Severity · Error
  • Applies to · UBL / CII
  • Editorial review pending

The check concerns the media type of an embedded supporting document (BT-125). The list allows PDF, PNG, JPEG, CSV, XLSX and ODS.

As of

Who can correct it?

The sender can correct the invoice.

How to fix it

  1. Choose the code for the actual value from the subset of MIME types in the pinned check. Check that your invoicing software uses the list for the selected format.
  2. XML fields in the affected group · UBL cbc:EmbeddedDocumentBinaryObject/@mimeCode · CII ram:AttachmentBinaryObject/@mimeCode

Rule text and source

Paraphrase · The code for the media type of an embedded supporting document (BT-125) must come from the subset of MIME types in the pinned check.

Message to the sender

Subject: Invoice {invoiceNumber} – An attachment has a media type outside the list

Hello,

could you clarify a detail on your invoice {invoiceNumber} dated {issueDate} (BR-CL-24)? The check concerns the media type of an embedded supporting document (BT-125). Please check the code against the list for the invoice format and send us the corrected invoice.

Thank you and kind regards

Example

A JPEG attachment uses mimeCode="image/jpeg". The value mimeCode="image/jpg" triggers the rule. The XML fragment shows only the start of the file contents.

UBL

cbc:EmbeddedDocumentBinaryObject/@mimeCode

Fails the rule
<cbc:EmbeddedDocumentBinaryObject mimeCode="image/jpg" filename="beleg.jpg">/9j/</cbc:EmbeddedDocumentBinaryObject>

Corrected
<cbc:EmbeddedDocumentBinaryObject mimeCode="image/jpeg" filename="beleg.jpg">/9j/</cbc:EmbeddedDocumentBinaryObject>

CII

ram:AttachmentBinaryObject/@mimeCode

Fails the rule
<ram:AttachmentBinaryObject mimeCode="image/jpg" filename="beleg.jpg">/9j/</ram:AttachmentBinaryObject>

Corrected
<ram:AttachmentBinaryObject mimeCode="image/jpeg" filename="beleg.jpg">/9j/</ram:AttachmentBinaryObject>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file