Provide the date value's format attribute

Error FX-SCH-A-000792 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 format attribute to the receiving document date

The qdt:DateTimeString of the referenced receiving document is missing the attribute that identifies the date format. Add @format to resolve the issue.

What to do
  1. Locate qdt:DateTimeString in the receiving document date.
  2. Add the @format attribute there.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<qdt:DateTimeString>20240131</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="...">20240131</qdt:DateTimeString>
Technical details

The Schematron condition checks whether the @format attribute is present on the context node.

Where the rule applies

The rule applies to qdt:DateTimeString within the date of the referenced receiving document.

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