Element 'ram:ID' may occur at maximum 1 times.
ram:BuyerAgentTradeParty contains more than one ram:ID. This element may occur at most once there.
The rule limits the buyer agent identifier to a single ram:ID, preventing multiple identifiers within this party element.
Several ram:ID elements are present in ram:BuyerAgentTradeParty. The rule allows at most one there; an identifier is not required.
- Locate
ram:BuyerAgentTradePartyin the invoice agreement section. - Remove any extra
ram:IDelements so that no more than one remains. - Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty> <ram:ID>A</ram:ID> <ram:ID>B</ram:ID> </ram:BuyerAgentTradeParty>
<ram:BuyerAgentTradeParty> <ram:ID>A</ram:ID> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct ram:ID elements under ram:BuyerAgentTradeParty and requires no more than 1; the element may be absent.
The rule applies to ram:ID within ram:BuyerAgentTradeParty in the document-level agreement section.
rule/@context)assert/@test)