Specify the due date format

Error FX-SCH-A-000484 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 for the due date.

What the rule means

The format attribute identifies the format used for the due date. Without it, the date value cannot be interpreted according to its format.

Please specify the due date format

The format is missing from the due date. You can resolve this by adding the format information.

What to do
  1. Find udt:DateTimeString for the due date.
  2. Add the format attribute there.
  3. Generate the invoice again and validate it.
Technical details

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

Where the rule applies

The rule applies to udt:DateTimeString for the due date in the document-level payment terms.

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