Start date format is missing

Error FX-SCH-A-000462 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 udt:DateTimeString element for the start date does not include the required format attribute.

What the rule means

The format attribute identifies how to read the start date value. Without it, the date representation is not sufficiently specified.

Please add the start date format

The start date in ram:StartDateTime is missing its format declaration. Add the format attribute to udt:DateTimeString.

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

The test checks whether the format attribute is present on udt:DateTimeString.

Where the rule applies

The rule applies to udt:DateTimeString within ram:StartDateTime of the ram:BillingSpecifiedPeriod billing period.

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