Provide the binary attachment’s MIME type

Error FX-SCH-A-001019 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. This attribute is required in this context.

What the rule means

The MIME type identifies the format of the binary attachment. Without @mimeCode, this format information is absent from the attachment.

Please provide the MIME type of the binary attachment

The MIME type is missing from ram:AttachmentBinaryObject. Add the required @mimeCode attribute.

What to do
  1. Find the affected ram:AttachmentBinaryObject.
  2. Add the @mimeCode attribute to it.
  3. Generate the invoice again and validate it.
Technical details

The check requires the @mimeCode attribute to be present on ram:AttachmentBinaryObject.

Where the rule applies

The rule applies to ram:AttachmentBinaryObject of an additional referenced document on an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:AdditionalReferencedDocument/ram:AttachmentBinaryObject
Test expression (assert/@test)
@mimeCode