Provide the date format

Error FX-SCH-A-000645 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 qdt:DateTimeString.

What the rule means

The @format attribute identifies the format of the date or time value in qdt:DateTimeString. Without the attribute, this format information is absent.

Please provide the format of the referenced document's date

The date for the referenced document with the value 916 is missing its format declaration. Add the @format attribute to qdt:DateTimeString.

What to do
  1. Find the qdt:DateTimeString under ram:FormattedIssueDateTime in the referenced document with the ram:TypeCode value 916.
  2. Add the @format attribute there.
  3. Generate the invoice again and validate it again.
Technical details

The rule checks whether the @format attribute is present on qdt:DateTimeString under ram:FormattedIssueDateTime.

Where the rule applies

On the qdt:DateTimeString under ram:FormattedIssueDateTime of the ram:AdditionalReferencedDocument whose ram:TypeCode has the value 916.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="916"]/ram:FormattedIssueDateTime/ qdt:DateTimeString
Test expression (assert/@test)
@format