Element 'ram:CountryID' must occur exactly 1 times.
In ram:PostalTradeAddress, ram:CountryID does not occur exactly once. The element is either missing or repeated.
The payer’s legal organization address must contain exactly one country identifier so that its country is stated unambiguously.
The country identifier is missing from the payer’s legal organization address or is entered more than once. Provide exactly one ram:CountryID.
- Find
ram:PostalTradeAddresswithin the payer’sram:SpecifiedLegalOrganization. - Make sure it contains exactly one
ram:CountryID. - Generate the invoice again and validate it.
<ram:SpecifiedLegalOrganization> <ram:PostalTradeAddress/> </ram:SpecifiedLegalOrganization>
<ram:SpecifiedLegalOrganization> <ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress> </ram:SpecifiedLegalOrganization>
Technical details
The Schematron condition counts the child elements ram:CountryID and requires the count to be 1.
The rule applies to ram:PostalTradeAddress within the payer’s ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)