Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or occurs more than once.
The rule requires exactly one country entry in the legal organisation’s postal address.
The legal organisation’s postal address is missing ram:CountryID, or the element occurs more than once. You can resolve this by having exactly one such element.
- Locate
ram:PostalTradeAddressin the tax representative’sram:SpecifiedLegalOrganization. - Make sure it 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 the direct ram:CountryID elements in ram:PostalTradeAddress and requires the count to be 1.
The rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization for the seller’s tax representative.
rule/@context)assert/@test)