PEPPOL-EN16931-CL001: Mime code must be according to subset of IANA code list
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-EN16931-CL001]-Mime code must be according to subset of IANA code list.
some $code in $MIMECODE
satisfies @mimeCode = $codePEPPOL-EN16931-CL001 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
The attribute cbc:EmbeddedDocumentBinaryObject/@mimeCode must contain a MIME code from the Peppol-defined subset of the IANA list. The test accepts exactly these six codes: application/pdf, image/png, image/jpeg, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, and application/vnd.oasis.opendocument.spreadsheet. Since this is a fatal rule, any other value (or a missing/empty attribute) rejects the document.
How to fix
Set the mimeCode attribute on each cbc:EmbeddedDocumentBinaryObject to one of the allowed codes listed above, matching the actual file type of the embedded document. For example, use application/pdf for PDF attachments, image/png for PNG images, or text/csv for CSV files. If the embedded object is of another type, convert it to one of the allowed formats and then set the corresponding code.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to PEPPOL-EN16931-CL001.
Validate an invoice against these rules · All release changes