Element 'ram:SubjectCode' may occur at maximum 1 times.
ram:SubjectCode occurs more than once in ram:IncludedNote.
A note can contain at most one subject code at this location. Multiple ram:SubjectCode elements do not conform to the intended XML structure.
The note on a document associated with an invoice line contains the subject code more than once. You can adjust the XML structure so that ram:IncludedNote contains at most one ram:SubjectCode element.
- Check the repeated
ram:SubjectCodeelements inram:IncludedNote. - Ensure that this element occurs no more than once there.
- Regenerate the invoice and check it again.
<ram:IncludedNote> <ram:SubjectCode>Code A</ram:SubjectCode> <ram:SubjectCode>Code B</ram:SubjectCode> </ram:IncludedNote>
<ram:IncludedNote> <ram:SubjectCode>Code</ram:SubjectCode> </ram:IncludedNote>
Technical details
The Schematron check counts the direct ram:SubjectCode elements within ram:IncludedNote and permits no more than one.
The rule applies to ram:IncludedNote on the document associated with an invoice line.
rule/@context)assert/@test)