mimeCode must be present

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. Without this attribute, the media type of the binary content is not specified on this element.

What the rule means

mimeCode identifies the media type of the binary content and allows it to be classified.

Please add mimeCode to AttachmentBinaryObject

The media type is missing for a binary attachment. Add the attribute to the relevant XML element.

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

The Schematron condition checks whether the mimeCode attribute is present on ram:AttachmentBinaryObject.

Where the rule applies

The rule applies to ram:AttachmentBinaryObject of a referenced document on the agreement level of an invoice line.

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