Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or appears more than once.
The postal address requires exactly one country entry so that the country of the ship-from organization is unambiguous.
ram:CountryID is missing or appears more than once in the ship-from organization’s ram:PostalTradeAddress. The number of elements can be adjusted to exactly one.
- Locate
ram:PostalTradeAddressinram:SpecifiedLegalOrganizationfor the ship-from party. - Ensure that it contains exactly one
ram:CountryIDelement. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The rule checks that the number of direct ram:CountryID child elements of ram:PostalTradeAddress equals one.
This rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization for the ship-from party (ram:ShipFromTradeParty).
rule/@context)assert/@test)