Use an allowed format value for the seller order date

Error FX-SCH-A-000756 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

If format contains a value that is not listed in the code list for this format, the value is not allowed. An empty value also passes this test.

What the rule means

The value of format determines the date representation and, if it is not empty, must match an entry in the designated code list.

Please use an allowed date format for the seller order

The value of format on qdt:DateTimeString was not recognized as an allowed entry. Use a value from the designated code list or leave the attribute empty.

What to do
  1. Check the value of format on the seller order’s qdt:DateTimeString element.
  2. Use an entry from the code list designated for this format, or leave the value empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty value or a value present in the external 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 seller order within the invoice agreement.

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