Date format must be specified

Error FX-SCH-A-001029 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 ram:FormattedIssueDateTime in ram:BuyerOrderReferencedDocument.

What the rule means

The format attribute identifies the format of the referenced buyer order date value. Without this attribute, the format is not specified.

Please specify the buyer order date format

The format attribute is missing from the issue date of the referenced buyer order. Add the format attribute to qdt:DateTimeString.

What to do
  1. Locate the affected invoice line’s ram:BuyerOrderReferencedDocument.
  2. Add the format attribute to qdt:DateTimeString.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<qdt:DateTimeString/>
✓ Correct
<qdt:DateTimeString format=""/>
Technical details

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

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString in the issue date of the referenced buyer order at invoice line level.

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