Format is required for the tax date

Error FX-SCH-A-000590 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:DateString element under ram:TaxPointDate does not contain a format attribute.

What the rule means

The format attribute indicates how to read the tax date value. Without it, the date format is not stated in the XML.

Please add the format to the tax date

The tax date is missing its format. Add the missing attribute so the date value is clearly identified.

What to do
  1. Find ram:TaxPointDate and its udt:DateString element.
  2. Add the required format attribute to udt:DateString.
  3. Generate the invoice again and validate it.
Technical details

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

Where the rule applies

This rule applies to the date in udt:DateString under ram:TaxPointDate within the document-level tax details.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:ApplicableTradeTax/ram:TaxPointDate/udt:DateString
Test expression (assert/@test)
@format