Invalid format code for the quotation date

Error FX-SCH-A-000732 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 included in the designated code list. The test permits an empty format code.

What the rule means

The format code specifies how to interpret the quotation date. A code that is not permitted can make the date difficult to interpret unambiguously.

Please use an allowed format code for the quotation date

The date of the referenced quotation has a format code in qdt:DateTimeString that is not permitted. This can be corrected by using an allowed or empty format code.

What to do
  1. Locate the referenced quotation’s qdt:DateTimeString.
  2. Check the value of the format attribute.
  3. Use a value permitted by the code list or leave the format code empty.
  4. Generate the invoice again and validate it.
Technical details

The check accepts an empty code value or a value listed as @value in an enumeration with id=17 in the code list.

Where the rule applies

This rule applies to qdt:DateTimeString for the issue date of the referenced quotation in ram:QuotationReferencedDocument.

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