Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
CountrySubDivisionName may occur no more than once in PostalTradeAddress. The element appears more than once.
CountrySubDivisionName identifies a subdivision of the country in the seller’s address. This rule does not allow multiple occurrences of the element.
The postal address of the seller’s legal organization contains CountrySubDivisionName more than once. Remove the extra occurrence so that the element appears no more than once.
- Locate the postal address under
SellerTradePartyandSpecifiedLegalOrganization. - Check its
CountrySubDivisionNameelements and remove any extra occurrences. - 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 limits the number of direct CountrySubDivisionName elements in PostalTradeAddress to at most 1; zero occurrences are allowed.
The rule applies to the postal address of the seller’s legal organization in SellerTradeParty.
rule/@context)assert/@test)