Referenced date format attribute

Error FX-SCH-A-000959 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 is missing from the qdt:DateTimeString element.

What the rule means

The format attribute indicates how the date value in qdt:DateTimeString is to be interpreted.

Please add the date format for the referenced document

The date of the referenced document is missing its format attribute. Add the format so the date value can be interpreted.

What to do
  1. Locate the qdt:DateTimeString date of the referenced document.
  2. Add the required format attribute.
  3. Generate the invoice again and validate it once more.
Technical details

The XPath test checks whether the @format attribute exists on the context node.

Where the rule applies

The rule applies to qdt:DateTimeString, the date value of the document referenced by an advance payment.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedAdvancePayment/ram:InvoiceSpecifiedReferencedDocument/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
@format