Element 'ram:Name' must occur exactly 1 times.
Within ram:BuyerAgentTradeParty, ram:Name does not occur exactly once: the element is missing or appears more than once.
The buyer agent must be identified by exactly one name element so that the party information includes a name.
ram:Name is missing from ram:BuyerAgentTradeParty or appears more than once. The rule requires exactly one name element.
- Locate
ram:BuyerAgentTradePartyin the invoice agreement section. - Make sure it contains exactly one
ram:Name. - Generate the invoice again and validate it once more.
<ram:BuyerAgentTradeParty/>
<ram:BuyerAgentTradeParty> <ram:Name>...</ram:Name> </ram:BuyerAgentTradeParty>
Technical details
The test counts the direct ram:Name elements under ram:BuyerAgentTradeParty and requires a count of 1.
The rule applies to ram:Name within ram:BuyerAgentTradeParty in the document-level agreement section.
rule/@context)assert/@test)