Element 'ram:PostalTradeAddress' must occur exactly 1 times.
ram:PostalTradeAddress does not occur exactly once in ram:BuyerTradeParty. The element is either missing or occurs more than once.
The buyer information must contain exactly one postal address element so that the address is provided in the required structure.
The buyer information is missing ram:PostalTradeAddress or contains it more than once. Including exactly one such element corrects this issue.
- Check
ram:BuyerTradePartyforram:PostalTradeAddress. - Make sure exactly one
ram:PostalTradeAddresselement is present. - Generate the invoice again and validate it again.
<ram:BuyerTradeParty/>
<ram:BuyerTradeParty> <ram:PostalTradeAddress/> </ram:BuyerTradeParty>
Technical details
The XPath test count(ram:PostalTradeAddress)=1 checks that exactly one direct ram:PostalTradeAddress child element is present.
The rule applies to ram:PostalTradeAddress within the buyer information ram:BuyerTradeParty.
rule/@context)assert/@test)