Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.
ram:SpecifiedTaxRegistration occurs more than once within ram:PayerTradeParty. The element may occur no more than once.
The payer’s tax registration is provided no more than once in this XML context.
ram:SpecifiedTaxRegistration appears more than once in ram:PayerTradeParty. You can adjust the XML so that the element occurs no more than once.
- Find
ram:PayerTradePartyin the invoice. - Check whether it contains more than one
ram:SpecifiedTaxRegistrationelement. - Remove any extra
ram:SpecifiedTaxRegistrationelements, or omit the element if no tax registration is provided. - Generate the invoice again and validate it.
<ram:PayerTradeParty> <ram:SpecifiedTaxRegistration/> <ram:SpecifiedTaxRegistration/> </ram:PayerTradeParty>
<ram:PayerTradeParty> <ram:SpecifiedTaxRegistration/> </ram:PayerTradeParty>
Technical details
The rule counts direct ram:SpecifiedTaxRegistration elements under ram:PayerTradeParty and permits zero or one occurrence.
The rule applies to the tax registration within document-level ram:PayerTradeParty.
rule/@context)assert/@test)