Allowed end date format code

Error FX-SCH-A-000540 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 is not included in the code list used by this rule.

What the rule means

The format code specifies how to interpret the end date of the billing period. A value that is not allowed does not match an entry in the code list used by this rule.

Please use an allowed format code for the end date

The value of the format attribute on the end date is not allowed by this rule. You can replace it with a value provided in the code list.

What to do
  1. Check the value of the format attribute on udt:DateTimeString under ram:EndDateTime.
  2. Use a value included in the code list for this attribute.
  3. Generate the invoice again and check it again.
Technical details

A non-empty value of the format attribute is matched against the entries in code list cl with identifier 3 in FACTUR-X_BASIC_codedb.xml.

Where the rule applies

The value of the format attribute on udt:DateTimeString of ram:EndDateTime in the invoice line billing period.

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