Value of @format is not allowed

Error FX-SCH-A-000022 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 non-empty value of @format does not match an entry in the code list checked for this value. An empty value passes this XPath test and is not reported as an invalid value by this rule.

What the rule means

A provided value for @format must match an entry in the corresponding code list so that the date format is identified unambiguously.

Please use an allowed format for the issue date

The value provided for @format is not included in the code list checked for it. Select a value listed there.

What to do
  1. Replace the disallowed value of @format on udt:DateTimeString with a value from the corresponding code list.
  2. Generate the invoice again and validate it once more.
Technical details

The XPath test passes when $codeValue3 is empty or when its value appears in the enumeration of code list ID 3 in FACTUR-X_MINIMUM_codedb.xml.

Where the rule applies

The rule applies to @format on udt:DateTimeString within ram:IssueDateTime in the document header.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString
Test expression (assert/@test)
string-length($codeValue3)=0 or document('FACTUR-X_MINIMUM_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]