Disallowed date format

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 value of the format attribute is not empty and does not match any value allowed for this attribute. A missing or empty value passes this check.

What the rule means

The date format determines how the value of udt:DateTimeString is to be interpreted. A disallowed format code may lead to a different interpretation.

Please use an allowed format for the basis date

The format value for the basis date of the payment discount terms is not allowed. You can adjust the value or leave it empty.

What to do
  1. Find the basis date udt:DateTimeString in the payment discount terms.
  2. Compare the value of format with the values allowed for this attribute.
  3. Adjust the value or leave format empty.
  4. Generate the invoice again and validate it.
Technical details

The XPath allows an empty value for the format attribute or requires its value to occur in the code list identified by 3.

Where the rule applies

The rule applies to the value of the format attribute on udt:DateTimeString within the basis date of payment discount 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]