Specify the date format

Error FX-SCH-A-001087 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. The format of the date value is therefore not identified.

What the rule means

The format identifies how the date value in qdt:DateTimeString is structured so that it can be read unambiguously.

Please specify the receiving advice date format

The date format is missing for the referenced receiving advice date. You can resolve this by specifying the format on the date value.

What to do
  1. Add format to the qdt:DateTimeString element.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<qdt:DateTimeString>20250131</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="102">20250131</qdt:DateTimeString>
Technical details

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

Where the rule applies

The rule applies to qdt:DateTimeString within the date of the referenced receiving advice for an invoice line.

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