Allowed format value for the period start

Error FX-SCH-A-000542 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 format code value is not included in the code list used by this rule. However, the test accepts an empty value.

What the rule means

The format code defines an allowed representation of the date and time value. A value outside the code list cannot be recognized as an allowed format.

Please use an allowed format for the billing period start

The format value on udt:DateTimeString for the billing period start is not recognized as allowed by this rule. You can correct it to use an allowed format; the test also accepts an empty value.

What to do
  1. Check the format attribute value on udt:DateTimeString under ram:StartDateTime.
  2. Use a value from the code list allowed by this rule, or leave the value empty.
  3. Generate the invoice again and validate it once more.
Technical details

The test passes if the checked code value is empty or occurs in the code list identified by 3.

Where the rule applies

The rule applies to the format attribute of udt:DateTimeString under ram:StartDateTime of an invoice line’s billing period.

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