Format for the referenced document date

Error FX-SCH-A-000465 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 for the issue date of the referenced document.

What the rule means

The format identifies how to interpret the date value of the referenced document. Without it, the date representation is not explicitly identified.

Please add the format for the referenced document date

No format is provided for the issue date of the referenced document. You can resolve this by adding the attribute to the date value.

What to do
  1. Locate ram:InvoiceReferencedDocument and its ram:FormattedIssueDateTime.
  2. Add @format to qdt:DateTimeString.
  3. Generate the invoice again and validate it.
Technical details

The test checks whether a @format attribute is present on the context-specific qdt:DateTimeString.

Where the rule applies

The rule applies to qdt:DateTimeString in ram:FormattedIssueDateTime of ram:InvoiceReferencedDocument.

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