Provide the MIME code for the file attachment

Error FX-SCH-A-000285 Factur-X

Attribute '@mimeCode' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The mimeCode attribute is missing from ram:AttachmentBinaryObject.

What the rule means

The mimeCode attribute identifies the media type of the file attachment.

Please provide the MIME code for the file attachment

The mimeCode attribute is missing from ram:AttachmentBinaryObject. Add it so the media type of the attachment is included.

What to do
  1. Add the mimeCode attribute to ram:AttachmentBinaryObject.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:AttachmentBinaryObject>QQ==</ram:AttachmentBinaryObject>
✓ Correct
<ram:AttachmentBinaryObject mimeCode="application/pdf">QQ==</ram:AttachmentBinaryObject>
Technical details

The test checks whether the mimeCode attribute is present on the current ram:AttachmentBinaryObject.

Where the rule applies

The rule applies to the mimeCode attribute of ram:AttachmentBinaryObject for the embedded document.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="916"]/ram:AttachmentBinaryObject
Test expression (assert/@test)
@mimeCode