Use an allowed format code for the date

Error FX-SCH-A-000793 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 is non-empty and does not match any of the values allowed by the code list with identifier 17 for this rule.

What the rule means

A non-empty value of @format must be included in the code list referenced by this rule. The test condition also allows an empty value.

Please use an allowed format code for the receiving document date

The value of @format on qdt:DateTimeString is not recognized as an allowed code. Use a value listed in the associated code list or leave the value empty.

What to do
  1. Locate qdt:DateTimeString in the receiving document date.
  2. Check the @format value against the code list allowed by this rule.
  3. Use a value listed there or leave the attribute value empty.
  4. Generate the invoice again and validate it.
Technical details

The condition accepts an empty $codeValue17 value or a value present in the enumeration of code list 17 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the value of the @format attribute on qdt:DateTimeString in the referenced receiving document date.

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