Allowed format code for the period start

Error FX-SCH-A-000463 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 is neither empty nor included in the code list checked for this date value.

What the rule means

The format code indicates how to read the date value for the start of the period. A code not in the list cannot be recognized by the rule as an allowed date representation.

Please use an allowed format code for the period start

The format value provided for the start of the billing period is not recognized as allowed. You can resolve this by using a value from the checked code list.

What to do
  1. Locate ram:StartDateTime in the billing period.
  2. Check the value of @format against the code list for this date value.
  3. Generate the invoice again and validate it.
Good to know

According to the test, an empty value is also allowed.

Technical details

The test accepts an empty value or a value from the code list identified by 3.

Where the rule applies

The rule applies to the value of @format on udt:DateTimeString in ram:StartDateTime of the billing period.

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