BR-CL-24: MIME code of an attachment is not in MIME-Medientyp
Severity: fatal · Syntax: CII, UBL
Official message
For Mime code in attribute use MIMEMediaType.
What this means
BR-CL-24 requires MIME code of an attachment to be taken from MIME-Medientyp. Official text: For Mime code in attribute use MIMEMediaType.
Typical cause
The value sent is not in MIME-Medientyp, or a free-text label was sent instead of a code.
How to fix it
Replace the value with a code from MIME-Medientyp. The sample application/pdf shows the shape of the value, not every allowed code.
UBL
<!-- MIME code of an attachment: @mimeCode="application/pdf" -->CII
<!-- MIME code of an attachment: @mimeCode="application/pdf" -->
Business term
—
Related rules
Context and assertion
UBL cbc:EmbeddedDocumentBinaryObject[@mimeCode]
CII ram:AttachmentBinaryObject[@mimeCode]
UBL
((@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'))CII
((@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'))
Check a file now, free of charge
curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate
Questions
What does BR-CL-24 actually check?
BR-CL-24 requires MIME code of an attachment to be taken from MIME-Medientyp. Official text: For Mime code in attribute use MIMEMediaType.
How do I fix BR-CL-24?
Replace the value with a code from MIME-Medientyp. The sample application/pdf shows the shape of the value, not every allowed code.
If BR-CL-24 passes, is the invoice legally compliant?
No. This page helps you read this one Schematron assertion. A pass is not a statement about tax law, portal acceptance, or bank overlays.