Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress.
The structure allows at most one country subdivision entry in this postal address.
ram:CountrySubDivisionName occurs more than once in the legal organisation’s postal address. This element may appear at most once in that address.
- Locate
ram:PostalTradeAddressin the tax representative’sram:SpecifiedLegalOrganization. - Make sure it contains no more than one
ram:CountrySubDivisionName. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>B</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and requires a count of no more than 1.
The rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization for the seller’s tax representative.
rule/@context)assert/@test)