BR-CL-24

For Mime code in attribute use MIMEMediaType.

error: the document is invalid Peppol documentation ↗

Why it fails

  • An attached document (cbc:EmbeddedDocumentBinaryObject) has a mimeCode outside the allowed list, such as application/octet-stream or application/msword.

How to fix it

Attach the document as PDF, PNG, JPEG, CSV, XLSX or OpenDocument spreadsheet, with its matching MIME type.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cbc:EmbeddedDocumentBinaryObject[@mimeCode]
Test
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet'))

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Context
ram:AttachmentBinaryObject[@mimeCode]
Test
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet'))

Checked with EN 16931 Invoice (CII)