MIME type in embedded file · required · CII-DT-105
- Severity · Error
- Applies to · CII
- Editorial review pending
This issue concerns the MIME type in the embedded file section. The check requires the attribute at this location. This rule is part of the standalone EN 16931 1.3.17 checks.
As of
Who can correct it?
The sender can correct the invoice.
How to fix it
- Add the attribute @mimeCode using the file’s actual value.
- CII · /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@mimeCode
Rule text and source
Paraphrase · The attribute @mimeCode must be present in the embedded file section.
Message to the sender
Hello,
Validation of the invoice XML for {invoiceNumber} returned CII-DT-105. The message concerns MIME type in embedded file · required. Please correct the export and send me the updated XML file.
Thank you.Example
The embedded file has no attribute @mimeCode. The corrected entry carries the value that matches the file.
CII
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject/@mimeCode
Fails the rule
<ram:AttachmentBinaryObject filename="details.csv">YQ0KYg0K</ram:AttachmentBinaryObject>
Corrected
<ram:AttachmentBinaryObject filename="details.csv" mimeCode="text/csv">YQ0KYg0K</ram:AttachmentBinaryObject>Related rules
Business terms
Rule versions
CEN · EN 16931 1.3.17