Invalid date format for the period end

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 value list allowed for it. This check permits an empty value.

What the rule means

The format attribute indicates how the period end date is represented. A format value that is not allowed does not identify the date representation unambiguously according to the defined formats.

Please use an allowed date format for the period end

The format on udt:DateTimeString for the end of the billing period is not allowed. You can correct the @format value using the value list defined for it; this check accepts an empty value.

What to do
  1. Locate udt:DateTimeString at the end of ram:BillingSpecifiedPeriod.
  2. Check the @format attribute against the value list defined for it.
  3. Generate the invoice again and validate it once more.
Technical details

The check accepts an empty @format or a value present in the code list for the format.

Where the rule applies

The rule applies to the @format attribute of udt:DateTimeString at the end of the ram:BillingSpecifiedPeriod billing period.

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]