Element 'ram:TypeCode' must occur exactly 1 times.
The relevant ram:AdditionalReferencedDocument does not contain exactly one ram:TypeCode element. The element is either missing or occurs more than once.
A referenced document with the value 916 must be structurally identified by exactly one ram:TypeCode element.
The referenced document with the value 916 is missing its document type, or the type is entered more than once. You can correct this by providing exactly one ram:TypeCode there.
- Find the
ram:AdditionalReferencedDocumentwhoseram:TypeCodehas the value916. - Check that this referenced document contains exactly one
ram:TypeCodeelement. - Generate the invoice again and validate it again.
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:TypeCode>916</ram:TypeCode> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The rule applies to ram:AdditionalReferencedDocument with ram:TypeCode equal to 916 and checks whether the number of child ram:TypeCode elements is exactly one.
In the document-level ram:AdditionalReferencedDocument whose ram:TypeCode has the value 916.
rule/@context)assert/@test)