Invalid delivery date format

Error FX-SCH-A-000583 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 corresponding code list. The test also accepts an empty value.

What the rule means

The format specifies how the content of udt:DateTimeString is to be interpreted as a date or time. A value that is not listed can prevent consistent processing of the delivery date or time.

Please check the delivery date format

The format on udt:DateTimeString in the delivery event is not included in the applicable code list. You can update the format in this field.

What to do
  1. Find udt:DateTimeString in the delivery event.
  2. Check the value of the @format attribute against the allowed values.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty attribute or a value present in the code list with ID 3.

Where the rule applies

The rule applies to udt:DateTimeString in the delivery event within the delivery section.

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