Allowed format code for the issue date

Error FX-SCH-A-000960 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 not included in the code list used for it. This test also permits an empty value.

What the rule means

The format code indicates how to interpret the date value. A code that is not listed does not match the values defined for this field.

Please use an allowed format code for the issue date

The format code on the issue date is not listed as an allowed value. Use a value included in the code list for this field.

What to do
  1. Find the format attribute on qdt:DateTimeString.
  2. Replace the unlisted value with one included in the code list for this field.
  3. Generate the invoice again and validate it once more.
Technical details

The test permits an empty code value or a value listed as an enumeration in codedb under cl ID 17.

Where the rule applies

The rule applies to the format attribute on the issue date value of a referenced advance payment document.

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