Contract date format is required

Error FX-SCH-A-000705 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.

What the rule means

The format attribute indicates the format in which the date value is represented. Without this attribute, the format information required in this context is missing.

Please add the format for the contract date

The format information is missing from the issue date of the referenced contract document. Add the @format attribute to qdt:DateTimeString so the required information is present.

What to do
  1. Locate ram:ContractReferencedDocument and its qdt:DateTimeString element.
  2. Add the @format attribute to qdt:DateTimeString.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<qdt:DateTimeString>2024-01-31</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="">2024-01-31</qdt:DateTimeString>
Technical details

The XPath test checks only whether the @format attribute is present on the context node.

Where the rule applies

The rule applies to qdt:DateTimeString for the issue date in the referenced contract document.

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