Allowed format code for the referenced document date

Error FX-SCH-A-000466 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 is neither empty nor included in the code list checked for this document date.

What the rule means

The format code indicates how to read the issue date of the referenced document. A code not in the list cannot be recognized by the rule as an allowed date representation.

Please use an allowed format code for the referenced document date

The format value provided for the issue date of the referenced document is not recognized as allowed. You can resolve this by using a value from the checked code list.

What to do
  1. Locate ram:InvoiceReferencedDocument and its ram:FormattedIssueDateTime.
  2. Check the value of @format against the code list for this date.
  3. Generate the invoice again and validate it.
Good to know

According to the test, an empty value is also allowed.

Technical details

The test accepts an empty value or a value from the code list identified by 21.

Where the rule applies

The rule applies to the value of @format on qdt:DateTimeString in ram:FormattedIssueDateTime of ram:InvoiceReferencedDocument.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceReferencedDocument/ram:FormattedIssueDateTime/qdt:DateTimeString
Test expression (assert/@test)
string-length($codeValue21)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=21]/enumeration[@value=$codeValue21]