Provide the attachment's file name

Error FX-SCH-A-000286 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.

What the rule means

The @filename attribute contains the name of the binary attachment file. Without this attribute, the file name is not provided in the XML structure.

Please provide the file name for the attachment

The file attachment for the referenced document with the value 916 is missing its file name. Add the @filename attribute to ram:AttachmentBinaryObject.

What to do
  1. Find the ram:AttachmentBinaryObject in the referenced document with the ram:TypeCode value 916.
  2. Add the @filename attribute there.
  3. Generate the invoice again and validate it again.
Technical details

The rule checks whether the @filename attribute is present on ram:AttachmentBinaryObject.

Where the rule applies

On the ram:AttachmentBinaryObject of the ram:AdditionalReferencedDocument whose ram:TypeCode has the value 916.

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