Invalid date format identifier

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 does not match a value permitted by code list 17. An empty value is permitted by the test condition.

What the rule means

The identifier specifies how to interpret the date value. A value that is not permitted cannot be classified using the designated code list.

Please use an allowed date format identifier

The value of @format on qdt:DateTimeString for the contract issue date is not recognized as allowed. You can adjust the identifier and check the invoice again.

What to do
  1. Find qdt:DateTimeString under ram:FormattedIssueDateTime in the contract document.
  2. Check the value of @format against the code list for date formats.
  3. Generate the invoice again and check it again.
Technical details

The test permits an empty value; otherwise, the value must appear in an enumeration of the code list with id=17.

Where the rule applies

The rule applies to the value of the @format attribute on qdt:DateTimeString in the issue date of 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]