Element 'ram:ID' must occur exactly 1 times.
ram:ID is missing from ram:SpecifiedTaxRegistration or occurs more than once. The check requires exactly one ram:ID.
The payee’s tax registration must be represented by exactly one identifier so that the information is unambiguous.
The payee’s tax registration does not contain exactly one ram:ID element. You can adjust the XML accordingly.
- Locate
ram:SpecifiedTaxRegistrationwithinram:PayeeTradeParty. - Check how many times
ram:IDoccurs in it. - Ensure that it contains exactly one
ram:ID. - Regenerate the invoice and validate it again.
<ram:SpecifiedTaxRegistration/>
<ram:SpecifiedTaxRegistration> <ram:ID>...</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The XPath test counts the direct ram:ID elements within ram:SpecifiedTaxRegistration and requires the count to be 1.
The rule applies to the payee’s tax registration (ram:SpecifiedTaxRegistration) within ram:PayeeTradeParty.
rule/@context)assert/@test)