EN16931 / XRechnung / Peppol BIS 3 Validator

BR-CL-24: For Mime code in attribute use MIMEMediaType.

fatal CII UBL

What this error means and how to fix it

An EN 16931 code list rule: the value is not in the code list the standard uses (for example currency ISO 4217, country ISO 3166-1, unit of measure UN/ECE Rec 20, VAT category UNCL 5305). Replace it with a valid code. This is an error: the invoice is rejected until it is fixed.

Check your invoice against BR-CL-24 — free

Runs the KoSIT validator 1.6.3, unmodified · result in seconds · the file is not stored · No file at hand? Try a sample invoice

This error needs information only you have, so it is not repaired automatically. The free check shows every finding in the file with its location; if other errors in the same file are in the automatic set (totals, VAT breakdown, rounding, element order), the result page offers the corrected file for 9 €.

Rule text

[BR-CL-24]-For Mime code in attribute use MIMEMediaType.
Where the rule is checked (XPath context and test)
SyntaxSeverityContext (XPath)Test (XPath)
EN16931-UBLfatalcbc:EmbeddedDocumentBinaryObject[@mimeCode]((@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'))
EN16931-CIIfatalram:AttachmentBinaryObject[@mimeCode]((@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'))

Source: EN 16931-1 Schematron, UN/CEFACT CII syntax binding (ConnectingEurope/eInvoicing-EN16931, EUPL-1.2).

Source: EN 16931-1 Schematron, UBL syntax binding (ConnectingEurope/eInvoicing-EN16931, EUPL-1.2).

Check your invoice against this rule