Element 'ram:GlobalID' may occur at maximum 1 times.
ram:GlobalID occurs more than once in ram:PayeeTradeParty. This element may occur no more than once there.
The global identifier assigns an identifier to the payee. Multiple global identifiers at this location do not conform to the specified XML structure.
More than one ram:GlobalID element is recorded for the payee. You can correct the invoice by limiting the number to one at most.
- Locate
ram:PayeeTradePartyin the invoice data. - Limit the
ram:GlobalIDelements it contains to one at most. - Generate the invoice again and validate it once more.
<ram:PayeeTradeParty> <ram:GlobalID>123</ram:GlobalID> <ram:GlobalID>456</ram:GlobalID> </ram:PayeeTradeParty>
<ram:PayeeTradeParty> <ram:GlobalID>123</ram:GlobalID> </ram:PayeeTradeParty>
Technical details
The rule counts the direct ram:GlobalID elements in ram:PayeeTradeParty and fails if the count is greater than one.
The rule applies to ram:PayeeTradeParty at document level.
rule/@context)assert/@test)