Allowed value for the date format

Error FX-SCH-A-000671 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 does not match an allowed entry in the code list for the date format.

What the rule means

An allowed value identifies the representation of the date and time value according to the designated code list.

Please use an allowed value for the date format

The value of format on qdt:DateTimeString is not included in the associated code list. Use a value allowed by that list or leave the value empty.

What to do
  1. Locate qdt:DateTimeString for the referenced buyer order.
  2. Check the value of format against the code list for this attribute.
  3. Use a value from that list or leave it empty.
  4. Generate the invoice again and validate it.
Technical details

The rule compares the value of format with entries in the referenced code list with identifier 17; an empty value is also accepted.

Where the rule applies

On the format attribute of qdt:DateTimeString for the referenced buyer order.

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