Element 'ram:TypeCode' must occur exactly 1 times.
ram:AdditionalReferencedDocument does not contain exactly one ram:TypeCode. The element is either missing or occurs more than once.
ram:TypeCode specifies the type of the additional referenced document. Exactly one occurrence is required to identify the document type unambiguously.
The document type is missing from ram:AdditionalReferencedDocument or is specified more than once. This document reference requires exactly one ram:TypeCode.
- Locate the affected
ram:AdditionalReferencedDocumentin the invoice line’s settlement. - Make sure it contains exactly one
ram:TypeCode. - Generate the invoice again and check it once more.
<ram:AdditionalReferencedDocument/>
<ram:AdditionalReferencedDocument> <ram:TypeCode>TYPE</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The test counts direct ram:TypeCode elements within ram:AdditionalReferencedDocument and requires exactly one.
The rule applies within ram:AdditionalReferencedDocument in the settlement for an invoice line.
rule/@context)assert/@test)