Format attribute required for the date value

Error FX-SCH-A-000950 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. Without this attribute, the date format is not specified in this XML context.

What the rule means

The format attribute identifies how the content of qdt:DateTimeString is to be interpreted. It must be present so that the date value can be identified unambiguously.

Please specify the format for the advance payment date

The @format attribute is missing from qdt:DateTimeString. Add this attribute to specify the date format.

What to do
  1. Open ram:FormattedReceivedDateTime for the advance payment.
  2. Add @format to the contained qdt:DateTimeString element.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:FormattedReceivedDateTime>
  <qdt:DateTimeString>20240131</qdt:DateTimeString>
</ram:FormattedReceivedDateTime>
✓ Correct
<ram:FormattedReceivedDateTime>
  <qdt:DateTimeString format="">20240131</qdt:DateTimeString>
</ram:FormattedReceivedDateTime>
Technical details

The test checks whether the @format attribute exists on the context node qdt:DateTimeString.

Where the rule applies

The rule applies to qdt:DateTimeString under ram:FormattedReceivedDateTime of an advance payment.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedAdvancePayment/ram:FormattedReceivedDateTime/qdt:DateTimeString
Test expression (assert/@test)
@format