Tax date format is missing

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 does not include the required format attribute.

What the rule means

The format attribute indicates how to read the tax date value as a date. Without it, the date representation is not sufficiently identified.

Please add the tax date format

The date value in ram:TaxPointDate is missing its format declaration. Add the format attribute to identify how the date is represented.

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

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

Where the rule applies

The rule applies to udt:DateString within ram:TaxPointDate in the document-level VAT breakdown.

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