Allowed format code for the receipt date

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

If format has a value, that value must be included in the code list used by the rule. A value not in the list is not allowed. An empty value passes this specific check.

What the rule means

A listed format code specifies how to read the date value. The check confirms that the supplied code belongs to the designated code list.

Please use an allowed format code for the receipt date

The format code provided for the advance payment receipt date is not in the designated code list. This check accepts an empty value.

What to do
  1. Locate the format attribute on the advance payment’s qdt:DateTimeString.
  2. Compare its value with the code list designated for this rule.
  3. Replace a value that is not listed with an allowed code, or leave the value empty.
  4. Regenerate the invoice and validate it again.
Technical details

The test allows an empty code value. Otherwise, the value must occur as an enumeration in code list 17 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the format attribute of qdt:DateTimeString for an advance payment receipt date.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedAdvancePayment/ram:FormattedReceivedDateTime/qdt:DateTimeString
Test expression (assert/@test)
string-length($codeValue17)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=17]/enumeration[@value=$codeValue17]