Allowed value for the format attribute

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

The value of the format attribute is neither empty nor included in the code list checked by this rule. A non-empty value must occur in code list 17.

What the rule means

A format value from the designated code list identifies how the date value is represented. A value not listed there cannot be treated as an allowed format by this rule.

Please use an allowed value for the date format

The value of format on the seller order date is not recognized as allowed by this rule. You can leave the attribute empty or use a value from the designated code list.

What to do
  1. Locate the format attribute on qdt:DateTimeString for the seller's order.
  2. Check whether the value is empty or included in the designated code list.
  3. Generate the invoice again and validate it again.
Technical details

The test accepts an empty value or a value present in externally loaded code list 17.

Where the rule applies

The rule applies to the format attribute on qdt:DateTimeString within the date document for the seller's order.

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]