Use an allowed format code for the delivery note date

Error FX-SCH-A-001080 Factur-X

Value of '@format' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value of @format on qdt:DateTimeString is not included in the code list allowed by this rule. A non-empty value must match an entry in that list.

What the rule means

The format code indicates the pattern used to interpret the date value. A code that is not allowed may result in an ambiguous or unintended interpretation of the date.

Please use an allowed format code for the delivery note date

The format code on qdt:DateTimeString of the delivery note is not listed as an allowed value. Replace it with a value permitted by the code list.

What to do
  1. Check the value of @format on qdt:DateTimeString of the delivery note.
  2. Replace any disallowed value with an entry from the applicable code list.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<qdt:DateTimeString format="INVALID">20261003</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="102">20261003</qdt:DateTimeString>
Technical details

The test accepts an empty value or a value present as @value in the code list with id 17. The error occurs when a non-empty value has no matching entry.

Where the rule applies

The rule applies to the @format attribute of qdt:DateTimeString of the referenced delivery note in the delivery details of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:DeliveryNoteReferencedDocument/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
string-length($codeValue17)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=17]/enumeration[@value=$codeValue17]