Invalid format code for the actual delivery date

Error FX-SCH-A-001075 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 list of values allowed in this context. The test also allows an empty value.

What the rule means

The format code identifies how the date is represented. A code that is not allowed may prevent the date from being interpreted according to the intended coding.

Please use an allowed format code for the actual delivery date

The format value on the actual delivery event date is not accepted in this context. Use a value allowed by the related code list, or leave the value empty.

What to do
  1. Locate the udt:DateTimeString in ram:OccurrenceDateTime within ram:ActualDeliverySupplyChainEvent.
  2. Check the format attribute value against the code list for this context.
  3. Replace it with an allowed code from that list or leave it empty.
  4. Generate the invoice again and validate it again.
Technical details

The test accepts an empty value or a value listed in code list 3 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the format of udt:DateTimeString within ram:OccurrenceDateTime in the actual delivery event of an invoice line.

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