Element 'ram:TypeCode' must occur exactly 1 times.
In the relevant ram:AdditionalReferencedDocument, ram:TypeCode does not occur exactly once. It is missing or occurs more than once.
ram:TypeCode identifies the type of the additional referenced document. For a document with type code 50, this element must be present exactly once.
The additional referenced document with type code 50 is missing ram:TypeCode, or the element occurs more than once. You can resolve this by including the element exactly once.
- Open the relevant
ram:AdditionalReferencedDocument. - Make sure it contains
ram:TypeCodeexactly once. - Regenerate the invoice and validate it again.
<ram:AdditionalReferencedDocument> <ram:IssuerAssignedID>REF-1</ram:IssuerAssignedID> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>50</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The XPath context selects ram:AdditionalReferencedDocument based on the value 50 in ram:TypeCode. The test requires exactly one child ram:TypeCode element.
The rule applies to an additional referenced document at document level with ram:TypeCode 50.
rule/@context)assert/@test)