Faktura

BR-CL-24

fatalEN 16931code list ruleCIIUBL

For Mime code in attribute use MIMEMediaType.

Why it fails

An attachment's mime code is not a registered MIME media type.

How to fix it

EN 16931 restricts attachments to application/pdf, image/png, image/jpeg, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx) and application/vnd.oasis.opendocument.spreadsheet (ods). PDF is the safe choice.

What the validator checks

CII — context ram: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'))

UBL — context cbc: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'))

Related rules

Part of BR-CL — Code list rules.

Validate an invoice against this rule →