Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in the ram:PostalTradeAddress of ram:SpecifiedLegalOrganization. The element is either missing or repeated.
The country identifier specifies the country of the postal address of the invoicer’s legal organization. Exactly one such element is required for the address to be structurally unambiguous.
The postal address of the invoicer’s legal organization does not contain ram:CountryID exactly once. You can adjust the address structure accordingly.
- Locate
ram:PostalTradeAddressunder the invoicer’sram:SpecifiedLegalOrganization. - Make sure it contains exactly one
ram:CountryID. - Generate the invoice again and validate it once more.
Technical details
The test counts the direct ram:CountryID elements in ram:SpecifiedLegalOrganization/ram:PostalTradeAddress and requires the count to be 1.
The rule applies to the postal address of the invoicer’s legal organization, within ram:SpecifiedLegalOrganization/ram:PostalTradeAddress.
rule/@context)assert/@test)