Allowed date format value

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

A non-empty value of the format attribute is not included in the code list defined for it. An empty value passes this check, which separately checks that the attribute exists.

What the rule means

The code indicates the format in which the date is expressed. An unsupported format code may lead to inconsistent interpretation of the date.

Please use an allowed format for the document date

The value of format on qdt:DateTimeString is not allowed. Use a value from the code list defined for the date.

What to do
  1. Check the value of the format attribute on qdt:DateTimeString.
  2. Use a value from the code list defined for this field.
  3. Generate the invoice again and validate it once more.
Technical details

An empty value passes the check; otherwise, the attribute value must occur in the code list identified by 17.

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString for the date of a document referenced by an advance payment.

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]