Permitted format for the period end

Error FX-SCH-A-000859 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 on udt:DateTimeString is not included in the code list defined for it. The test permits a missing or empty format value.

What the rule means

The format indicates how the date value for the end of the billing period is to be interpreted. A permitted format code supports unambiguous processing of the date.

Please use a permitted format for the period end

The format attribute of udt:DateTimeString under ram:EndDateTime contains a value that is not permitted. You can update or omit the format value.

What to do
  1. Check the format attribute on udt:DateTimeString under ram:EndDateTime.
  2. Use only a format value permitted by the code list, or omit the attribute.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty code value or a value from code list ID 3 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString under ram:EndDateTime in ram:BillingSpecifiedPeriod.

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