Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode does not occur exactly once in ram:AdditionalReferencedDocument. The element is missing or appears more than once.
ram:TypeCode identifies the type of the additional referenced document. Exactly one element ensures that this information is provided once.
The additional referenced document is missing its document type, or the type is entered more than once. You can correct the number of entries.
- Locate the relevant
ram:AdditionalReferencedDocument. - Make sure it contains exactly one
ram:TypeCode. - Generate the invoice again and validate it once more.
<ram:AdditionalReferencedDocument/>
<ram:AdditionalReferencedDocument> <ram:TypeCode>x</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The XPath test checks whether exactly one direct ram:TypeCode element is present.
The rule applies to ram:TypeCode in ram:AdditionalReferencedDocument in a line item's settlement information.
rule/@context)assert/@test)