Use an allowed format code for the conversion date

Error FX-SCH-A-001010 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 contains a value that is not in the permitted code list 3, the format value is not allowed. This check does not reject an empty value.

What the rule means

An allowed format code is needed so the date value can be interpreted according to the intended format.

Please use an allowed format code for the conversion date

The exchange-rate date has a format code that is not permitted. Use a value included in code list 3.

What to do
  1. Check the value of the @format attribute on udt:DateTimeString.
  2. Replace any disallowed value with an entry from code list 3.
  3. Regenerate the invoice and validate it again.
Technical details

The test allows an empty value; otherwise, the value of @format must occur in the enumeration of code list 3.

Where the rule applies

Applies to the @format attribute of udt:DateTimeString for the exchange rate used for the tax currency.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:TaxApplicableTradeCurrencyExchange/ram:ConversionRateDateTime/udt:DateTimeString
Test expression (assert/@test)
string-length($codeValue3)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]