Referenced date format code is not allowed

Error FX-SCH-A-000862 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 the @format attribute on qdt:DateTimeString is not empty and does not match an entry in the associated code list.

What the rule means

The format code associates the issue-date value with an allowed date format. Under this rule, a code absent from the list cannot be recognized as an allowed format designation.

Please use an allowed format code for the referenced date

The format code on the issue date of the referenced document is not included in the allowed code list. Using an allowed code makes it possible to validate the invoice again.

What to do
  1. Locate qdt:DateTimeString for the issue date of the referenced document.
  2. Check the value of the @format attribute against the allowed code list.
  3. Generate the invoice again and validate it again.
Technical details

The test accepts an empty format code or a value included in the code list identified by 17.

Where the rule applies

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

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