Receiving advice date requires a 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 qdt:DateTimeString in the receiving advice’s ram:FormattedIssueDateTime.

What the rule means

The format indicates how the content of qdt:DateTimeString must be interpreted as a date.

Please add the format for the receiving advice date

The format information is missing for the receiving advice date. Add it to the date element.

What to do
  1. Locate qdt:DateTimeString in the receiving advice’s ram:FormattedIssueDateTime.
  2. Add the format attribute with an allowed format code.
  3. 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 directly on the context node whether the format attribute is present.

Where the rule applies

The rule applies to the date value in the receiving advice reference document.

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