Date format is missing

Error FX-SCH-A-000641 Factur-X

Attribute '@format' 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 @format attribute required in this context is missing from qdt:DateTimeString.

What the rule means

The format indicates how to read the date value in the referenced document. Without this attribute, the date format is not stated.

Please add the date format for the referenced document

The referenced document with ram:TypeCode 50 is missing the @format attribute on qdt:DateTimeString. Add the attribute to state the date format.

What to do
  1. Find the affected ram:AdditionalReferencedDocument with ram:TypeCode 50.
  2. Add @format to qdt:DateTimeString with a suitable format value.
  3. Generate the invoice again and validate it once more.
Technical details

The @format test checks whether the attribute is present on qdt:DateTimeString in this context.

Where the rule applies

Applies to qdt:DateTimeString of an additional referenced document with ram:TypeCode 50 in the invoice header.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="50"]/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
@format