Element 'ram:TypeCode' must occur exactly 1 times.
ram:TypeCode does not occur exactly once in the applicable AdditionalReferencedDocument. It is either missing or appears more than once.
ram:TypeCode specifies the type of the referenced document. Exactly one such code is required for the document being checked.
ram:TypeCode does not occur exactly once in the referenced document. For this rule, document type code 130 must be stated unambiguously.
- Check
AdditionalReferencedDocumentinApplicableHeaderTradeAgreement. - Make sure it contains exactly one
ram:TypeCodewith the value130. - Generate the invoice again and validate it.
<ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> <ram:TypeCode>130</ram:TypeCode> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
For AdditionalReferencedDocument with ram:TypeCode equal to 130, the test checks that exactly one direct ram:TypeCode element is present.
The rule applies to ram:TypeCode in AdditionalReferencedDocument within ApplicableHeaderTradeAgreement when the code has the value 130.
rule/@context)assert/@test)