BR-CL-24: For Mime code in attribute use MIMEMediaType
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-CL-24]-For Mime code in attribute use MIMEMediaType.
((@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'))BR-CL-24 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected.
What this rule requires
The rule requires that the mimeCode attribute on cbc:EmbeddedDocumentBinaryObject (UBL) or ram:AttachmentBinaryObject (CII) contains one of the allowed MIME media types: application/pdf, image/png, image/jpeg, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, or application/vnd.oasis.opendocument.spreadsheet. A document fails if the attribute is missing, empty, or has any value not in that list.
How to fix
Set the mimeCode attribute on the embedded document binary object to one of the allowed values. For example, use application/pdf for a PDF attachment. If the attachment is not one of these MIME types, choose an allowed type that matches the actual file content or convert the file to an allowed format.
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 BR-CL-24.
Validate an invoice against these rules · All release changes