Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode is missing from ram:AdditionalReferencedDocument or occurs more than once. The rule requires exactly one occurrence.
ram:TypeCode specifies the type of the additional document reference. Exactly one element ensures that the reference has a single type designation.
The additional document reference for the invoice line is missing ram:TypeCode or contains it more than once. Exactly one element is expected per ram:AdditionalReferencedDocument.
- Make sure there is exactly one
ram:TypeCodeinram:AdditionalReferencedDocument. - Regenerate the invoice and validate it again.
<ram:AdditionalReferencedDocument/>
<ram:AdditionalReferencedDocument> <ram:TypeCode>TYPE-1</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The test requires the number of ram:TypeCode elements in the current ram:AdditionalReferencedDocument to be exactly one.
The rule applies within the additional document reference of an invoice line agreement.
rule/@context)assert/@test)