Element 'ram:ID' may occur at maximum 1 times.
More than one ram:ID element is present under ram:UltimateShipToTradeParty. The rule allows no more than one such element.
The rule limits the number of identifiers for the ultimate delivery recipient to at most one. A missing ram:ID is permitted by this count check.
Several ram:ID elements are entered under ram:UltimateShipToTradeParty. You can resolve this by keeping no more than one such element there.
- Check the
ram:IDelements underram:UltimateShipToTradeParty. - Remove any extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:UltimateShipToTradeParty> <ram:ID>123</ram:ID> <ram:ID>456</ram:ID> </ram:UltimateShipToTradeParty>
<ram:UltimateShipToTradeParty> <ram:ID>123</ram:ID> </ram:UltimateShipToTradeParty>
Technical details
The Schematron check counts the direct ram:ID elements under ram:UltimateShipToTradeParty and requires a count less than or equal to 1.
The rule applies to ram:ID inside ram:UltimateShipToTradeParty in the delivery information of an invoice line.
rule/@context)assert/@test)