Invalid format code for the due date

Error FX-SCH-A-000983 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 @format attribute of udt:DateTimeString contains a value that is not in the code list identified by 3. An empty value is allowed by the test condition.

What the rule means

The format code determines how the date and time value is to be interpreted. A disallowed code prevents the due date from being interpreted unambiguously.

Please check the format of the due date

For the due date, udt:DateTimeString contains a disallowed format code. You can change the value to a code allowed for this field or leave it empty.

What to do
  1. Locate the udt:DateTimeString for the due date.
  2. Check the value of @format against the codes allowed for this field, or leave it empty.
  3. Regenerate the invoice and validate it again.
Technical details

The test accepts an empty format code or a value listed as an enumeration in FACTUR-X_EXTENDED_codedb.xml under code list cl with id=3.

Where the rule applies

The rule applies to udt:DateTimeString for the due date within the document-level payment terms.

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