Element 'ram:ID' may occur at maximum 1 times.
ram:BuyerAgentTradeParty contains more than one ram:ID. The element may occur no more than once.
ram:ID contains an identifier for the buyer agent. The rule limits the number of these identifiers to one at most.
More than one identifier is included for the buyer agent. You can adjust the invoice so that it contains no more than one ram:ID element.
- Find
ram:BuyerAgentTradeParty. - Check the
ram:IDelements it contains. - Remove any additional
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it again.
Technical details
The XPath test requires ram:ID to occur no more than once within ram:BuyerAgentTradeParty; zero occurrences are permitted.
The rule applies within ram:BuyerAgentTradeParty in the seller-buyer agreement.
rule/@context)assert/@test)