Invalid format for the contract date

Error FX-SCH-A-000706 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 on qdt:DateTimeString is not included in the applicable code list.

What the rule means

The format attribute identifies the representation of the date value. An unallowed format value cannot be classified as a permitted format specification.

Please use an allowed format for the contract date

The issue date of the referenced contract document has a format value that is not in the permitted code list. You can resolve the issue by using a value included in that list.

What to do
  1. Locate ram:ContractReferencedDocument and its qdt:DateTimeString element.
  2. Check the value of @format against the applicable code list.
  3. Replace any value not listed with an allowed format value.
  4. Generate the invoice again and validate it again.
Technical details

The test permits an empty checked value; otherwise, it must be present in code list ID 17.

Where the rule applies

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

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