Element 'ram:CountryID' must occur exactly 1 times.
In ram:PostalTradeAddress, ram:CountryID does not occur exactly once. The rule requires exactly one such element.
ram:CountryID specifies the country of the postal address. Exactly one element ensures that the address contains the expected country value.
The delivery location’s postal address is missing ram:CountryID, or the element occurs more than once. You can adjust the XML so that it contains exactly one element.
- Find
ram:PostalTradeAddressinShipToTradeParty. - Make sure the postal address contains exactly one
ram:CountryIDelement. - Regenerate the invoice and check it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The XPath test counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires exactly one.
Applies to the postal address under ram:PostalTradeAddress of ShipToTradeParty.
rule/@context)assert/@test)