Invalid format code for the period end date

Error FX-SCH-A-001132 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 on udt:DateTimeString is not included in the defined value list. This check permits an empty value.

What the rule means

The format code specifies how to read the content of udt:DateTimeString. A value not in the list does not identify a date format defined here.

Please use an allowed format code for the period end date

The value of format on the udt:DateTimeString for the period end date is not in the expected value list. You can correct the format information using an allowed value.

What to do
  1. Locate udt:DateTimeString under ram:EndDateTime in ram:BillingSpecifiedPeriod.
  2. Replace the value of format with a value from the defined value list.
  3. Generate the invoice again and check it.
Technical details

The test accepts an empty value or a value from code list 3.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString for the period end in ram:BillingSpecifiedPeriod of an invoice line.

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