Date format code is required

Error FX-SCH-A-001079 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 qdt:DateTimeString of the referenced delivery note document. The test requires the attribute to be present.

What the rule means

The format code describes how to read the date value of the referenced delivery note document. Without it, the date format is not specified.

Please add the date format code for the delivery note document

The date on the referenced delivery note document is missing its date-format code. Add the @format attribute so that the date is provided with its format.

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

The XPath test @format checks only whether the attribute is present on the current qdt:DateTimeString.

Where the rule applies

The rule applies to qdt:DateTimeString of the date on the referenced delivery note document in an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:DeliveryNoteReferencedDocument/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
@format