Use an allowed format for the allowance basis date-time

Error FX-SCH-A-000980 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 non-empty value of the format attribute on udt:DateTimeString is not included in the permitted date-format code list.

What the rule means

The format code determines how to read the date-time value. A code that is not allowed does not conform to the code list defined for this field.

Please use an allowed format for the allowance basis date-time

The format code entered for the allowance basis date-time is not allowed. You can resolve this by using an allowed code or leaving the value empty.

What to do
  1. Find the format attribute on udt:DateTimeString in the allowance basis date-time.
  2. Replace a disallowed value with a code from the date-format code list, or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The XPath test accepts an empty value or a value present in code list 3.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString within the allowance basis date-time in the document-level payment terms.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:ApplicableTradePaymentDiscountTerms/ 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]