Allowed format for the due date

Error FX-SCH-A-000485 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 @format on udt:DateTimeString is not included in the code list allowed by this rule.

What the rule means

The format attribute indicates how the due-date value is to be interpreted. A value that is not allowed prevents the date format from being identified unambiguously.

Please use an allowed format for the due date

The due-date format is specified with a value that is not allowed for @format. You can adjust the value using the allowed code list.

What to do
  1. Find the udt:DateTimeString for the due date in the payment terms.
  2. Check the value of the @format attribute against the allowed code list.
  3. Generate the invoice again and validate it again.
Technical details

The check permits an empty code value; otherwise, the value of @format must be present in the enumeration with ID 3 in the code-list file.

Where the rule applies

The rule applies to the @format attribute of udt:DateTimeString for the due date in the payment terms at document level.

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_BASIC-WL_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]