Format for the period start

Error FX-SCH-A-000541 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.

What the rule means

The format identifies how the date and time value is to be interpreted. Without it, the representation of the billing period start is not clearly identified.

Please specify the format for the billing period start

The billing period start contains a date and time value without a format specification. You can add the specification to identify the value clearly.

What to do
  1. Add the @format attribute to udt:DateTimeString under ram:StartDateTime.
  2. Generate the invoice again and validate it once more.
Technical details

The test checks directly on the context node whether the @format attribute is present.

Where the rule applies

The rule applies to 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)
@format