Disallowed date format code

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 @format in udt:DateTimeString is not included in the code list used by this check. The test explicitly accepts an empty value.

What the rule means

The code identifies the format used for the delivery event date. A value not in the code list can prevent the date from being interpreted unambiguously.

Please use an allowed date format code for the delivery event

The date-format code on the delivery occurrence date is not in the allowed code list. You can correct it using the code list; this check accepts an empty value.

What to do
  1. Locate udt:DateTimeString inside ram:OccurrenceDateTime.
  2. Check the value of @format against the allowed code list.
  3. Generate the invoice again and validate it again.
Technical details

The check accepts the value if it is empty or appears in enumeration id=3 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the @format date-format code of udt:DateTimeString in the occurrence date of an invoice line’s actual delivery event.

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]