Provide the binary attachment’s filename

Error FX-SCH-A-001021 Factur-X

Attribute '@filename' 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 @filename attribute is missing from ram:AttachmentBinaryObject. This attribute is required in this context.

What the rule means

The @filename attribute contains the binary attachment’s filename. Without this attribute, the filename is missing from the XML information.

Please provide the binary attachment’s filename

The filename is missing from ram:AttachmentBinaryObject. Add the required @filename attribute.

What to do
  1. Find the affected ram:AttachmentBinaryObject.
  2. Add the @filename attribute with the filename.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:AttachmentBinaryObject>contenu</ram:AttachmentBinaryObject>
✓ Correct
<ram:AttachmentBinaryObject filename="document.pdf">contenu</ram:AttachmentBinaryObject>
Technical details

The check requires the @filename 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)
@filename