Element 'ram:GlobalID' may occur at maximum 1 times.
ram:GlobalID occurs more than once in ram:ShipToTradeParty.
The rule prevents multiple occurrences of the global identifier element within the same ship-to party.
ram:GlobalID appears more than once in the ship-to party. Remove the repeated occurrence so that this element appears no more than once.
- Find
ram:ShipToTradePartyin the XML. - Check its
ram:GlobalIDelements and remove any duplicates. - Regenerate the invoice and validate it again.
<ram:ShipToTradeParty> <ram:GlobalID>1</ram:GlobalID> <ram:GlobalID>2</ram:GlobalID> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:GlobalID>1</ram:GlobalID> </ram:ShipToTradeParty>
Technical details
The test limits the number of direct ram:GlobalID elements in ram:ShipToTradeParty to at most one.
The rule applies to ram:GlobalID within the ship-to party element ram:ShipToTradeParty.
rule/@context)assert/@test)