Use an allowed format 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 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 due date. A code that is not allowed does not conform to the code list defined for this field.

Please use an allowed format for the due date

The format code entered for the due date 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 for the due date.
  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 for the due date in 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]