Invalid format value

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

A non-empty value of the format attribute on qdt:DateTimeString is not included in the value list used by this rule. An empty value passes this check.

What the rule means

A non-empty format value must match an entry in the designated code list so that the date or time format can be identified unambiguously.

Please use an allowed format for the referenced date

The format value given for the referenced document date is not in the designated value list. Using an allowed value will satisfy this check.

What to do
  1. Check the value of the format attribute on qdt:DateTimeString.
  2. For a non-empty value, use an entry from the designated value list.
  3. Generate the invoice again and validate it.
Technical details

The test permits an empty code value; otherwise, it checks the value against the enumeration in code list 17.

Where the rule applies

The rule applies to the value of the format attribute on qdt:DateTimeString in a referenced document date at invoice-line level.

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