Attribute '@format' is required in this context.
The format attribute is missing from the qdt:DateTimeString element for the issue date of the referenced document.
The format attribute identifies the format used for the content of qdt:DateTimeString. Without it, the date representation cannot be interpreted by its format.
The qdt:DateTimeString for the referenced document’s issue date has no format information. Add the missing attribute so that the date representation is specified.
- Locate
qdt:DateTimeStringunderram:FormattedIssueDateTimeinram:InvoiceReferencedDocument. - Add the
formatattribute toqdt:DateTimeStringwith an allowed value. - Generate the invoice again and check it.
Technical details
The test checks whether the format attribute is present on qdt:DateTimeString.
The rule applies to the qdt:DateTimeString date field for the issue date in ram:FormattedIssueDateTime of a referenced document within an invoice line.
rule/@context)assert/@test)