Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
CountrySubDivisionName occurs more than once in PostalTradeAddress. This element may appear at most once in the postal address.
The rule limits the number of country subdivision entries in this postal address to one.
CountrySubDivisionName appears more than once in the end user's postal address. You can adjust the entries so that this element occurs no more than once.
- Find
CountrySubDivisionNamein the relevantPostalTradeAddress. - Remove any extra occurrences so that no more than one element remains.
- Generate the invoice again and validate it again.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>Est</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The Schematron test counts the direct ram:CountrySubDivisionName child elements of ram:PostalTradeAddress and requires the count to be no greater than one.
The rule applies to the postal address of the end user's legal organization under ProductEndUserTradeParty.
rule/@context)assert/@test)