Format attribute value must be allowed

Error FX-SCH-A-001068 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 non-empty value of format is not included in the code list used by this rule. The test condition also accepts an empty value.

What the rule means

The value of format identifies the format of the date value. A non-empty value must match an entry in the associated code list.

Please use an allowed format for the quotation date

The non-empty value of the format attribute for the referenced quotation’s issue date is not included in the code list allowed by this rule. This check also accepts an empty value.

What to do
  1. Check the value of the format attribute on qdt:DateTimeString.
  2. Use an entry from the code list used by this rule, or leave the value empty.
  3. Generate the invoice again and validate it again.
What it looks like
✓ Correct
<qdt:DateTimeString format=""/>
Technical details

The check compares the value of format with entries in the external code list identified as 17; a value of zero length is also accepted.

Where the rule applies

The rule checks the format attribute of qdt:DateTimeString for the issue date of a referenced quotation within an invoice line’s agreement.

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