Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID is missing from the legal organization’s postal address or occurs more than once. Exactly one ram:CountryID is required.
ram:CountryID identifies the country of the postal address of the recipient’s legal organization.
The country identifier is missing from the legal organization’s postal address at the ship-to location or has been entered more than once. Make sure exactly one ram:CountryID is present.
- Locate the postal address in
ram:SpecifiedLegalOrganizationfor the party at the ship-to address. - Make sure the postal address contains exactly one
ram:CountryID. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test counts child elements ram:CountryID in the postal address of ram:SpecifiedLegalOrganization and requires exactly one occurrence.
The rule applies to the postal address in ram:SpecifiedLegalOrganization of the party at the ship-to address.
rule/@context)assert/@test)