Element 'ram:AttachmentBinaryObject' may occur at maximum 1 times.
An ram:AdditionalReferencedDocument of the invoice line contains multiple ram:AttachmentBinaryObject elements. This element may occur no more than once there.
This limit ensures that at most one binary attachment is associated with a referenced document in this XML context.
Multiple binary attachments are specified for the referenced document of an invoice line. You can limit the XML entry to no more than one attachment.
- Check
ram:AdditionalReferencedDocumenton the affected invoice line. - Remove any extra
ram:AttachmentBinaryObjectelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:AdditionalReferencedDocument> <ram:AttachmentBinaryObject/> <ram:AttachmentBinaryObject/> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:AttachmentBinaryObject/> </ram:AdditionalReferencedDocument>
Technical details
The Schematron condition counts the ram:AttachmentBinaryObject elements in context and requires the count to be no greater than one.
The rule applies to ram:AdditionalReferencedDocument on the agreement level of an invoice line.
rule/@context)assert/@test)