Element 'ram:Name' may occur at maximum 1 times.
ram:Name occurs more than once in ram:AdditionalReferencedDocument.
The referenced document can contain at most one name at this location. Multiple ram:Name elements do not conform to the intended XML structure.
The referenced document name appears more than once in ram:AdditionalReferencedDocument. You can adjust the XML structure so that there is at most one ram:Name element.
- Check the repeated
ram:Nameelements inram:AdditionalReferencedDocument. - Ensure that this element occurs no more than once there.
- Regenerate the invoice and check it again.
<ram:AdditionalReferencedDocument> <ram:Name>Name A</ram:Name> <ram:Name>Name B</ram:Name> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:Name>Name</ram:Name> </ram:AdditionalReferencedDocument>
Technical details
The Schematron check counts the direct ram:Name elements within ram:AdditionalReferencedDocument and permits no more than one.
The rule applies to ram:AdditionalReferencedDocument in the agreement for an invoice line.
rule/@context)assert/@test)