Date format identifier 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 required @format attribute is missing from qdt:DateTimeString.

What the rule means

The @format attribute identifies the format used for the date value. Without it, the format in use is not indicated.

Please identify the date format for the contract issue date

The qdt:DateTimeString for the referenced contract document’s issue date is missing the @format identifier. Add the attribute to indicate the date format in use.

What to do
  1. Find qdt:DateTimeString under ram:FormattedIssueDateTime in the contract document.
  2. Add the @format attribute to qdt:DateTimeString.
  3. Generate the invoice again and check it again.
What it looks like
✗ Triggers the message
<qdt:DateTimeString>20240101</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="102">20240101</qdt:DateTimeString>
Technical details

The test requires @format to be present on qdt:DateTimeString; it does not check the attribute value here.

Where the rule applies

The rule applies to the @format attribute of qdt:DateTimeString in the issue date of the referenced contract document.

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