Use an allowed date format code

Error FX-SCH-A-001030 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 is not included in the associated code list. This check permits an empty value.

What the rule means

An allowed format code identifies the date value using a value from the designated code list.

Please use an allowed format code for the buyer order date

The value of @format on the referenced buyer order date is not included in the designated code list. You can change the value or leave it empty.

What to do
  1. Locate qdt:DateTimeString for the date in ram:BuyerOrderReferencedDocument.
  2. Replace the value of @format with an entry from the designated code list, or leave it empty.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<qdt:DateTimeString format="INVALID">20261003</qdt:DateTimeString>
✓ Correct
<qdt:DateTimeString format="">20261003</qdt:DateTimeString>
Technical details

A non-empty value of @format is compared with code list 17; an empty value also passes this value check.

Where the rule applies

The rule checks the @format attribute of qdt:DateTimeString for the referenced buyer order date.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeAgreement/ram:BuyerOrderReferencedDocument/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]