Element variant 'ram:SpecifiedTaxRegistration[ram:ID/@schemeID="VA"]' may occur at maximum 1 times.
Several SpecifiedTaxRegistration elements under ItemSellerTradeParty have an ID element whose schemeID is VA. This element may occur there at most once.
In this rule, the VA marker identifies a particular variant of the seller’s tax registration. The limit prevents this variant from being stated more than once for the same invoice line.
The seller information for an invoice line contains the VA tax registration more than once. You can resolve this by removing the duplicate entry.
- Find the
SpecifiedTaxRegistrationelements withID/@schemeID="VA"inItemSellerTradeParty. - Keep no more than one of these elements.
- Regenerate the invoice and validate it again.
<ram:ItemSellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> </ram:SpecifiedTaxRegistration> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">B</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ItemSellerTradeParty>
<ram:ItemSellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">A</ram:ID> </ram:SpecifiedTaxRegistration> </ram:ItemSellerTradeParty>
Technical details
The XPath counts SpecifiedTaxRegistration elements under the current ItemSellerTradeParty with ID/@schemeID="VA" and requires the count to be no greater than one.
The rule applies to ItemSellerTradeParty within an invoice line agreement.
rule/@context)assert/@test)