Invalid format code for the penalty basis date

Error FX-SCH-A-000982 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 basis date from being interpreted unambiguously.

Please check the format of the penalty basis date

For the penalty basis 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 penalty basis 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 basis date within the penalty terms in the document-level payment terms.

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