Date format code is not allowed

Error FX-SCH-A-000860 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 empty and does not match an entry in the associated code list.

What the rule means

The format code associates the start-date value with an allowed date format. Under this rule, a code absent from the list cannot be recognized as an allowed format designation.

Please use an allowed format code for the start date

The format code on the billing period start date is not included in the allowed code list. Using an allowed code makes it possible to validate the invoice again.

What to do
  1. Locate udt:DateTimeString in the billing period start date.
  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 test accepts an empty format code or a value included in the code list identified by 3.

Where the rule applies

The rule applies to udt:DateTimeString in the start date of the billing period at document level.

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