Format for the period end

Error FX-SCH-A-000460 Factur-X

Attribute '@format' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The @format attribute is missing from udt:DateTimeString at the end of the period.

What the rule means

The format identifies how to interpret the date value for the end of the period. Without it, the date representation is not explicitly identified.

Please add the format for the period end

No format is provided for the end of the billing period. You can resolve this by adding the attribute to the date value.

What to do
  1. Locate ram:EndDateTime in the billing period.
  2. Add @format to udt:DateTimeString.
  3. Generate the invoice again and validate it.
Technical details

The test checks whether a @format attribute is present on the context-specific udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString in ram:EndDateTime of the billing period.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:BillingSpecifiedPeriod/ram:EndDateTime/udt:DateTimeString
Test expression (assert/@test)
@format