Element 'ram:ID' must occur exactly 1 times.
The product end user's tax registration does not contain exactly one ram:ID element. The ID is either missing or occurs more than once.
The ram:ID contains the tax registration identifier. Requiring exactly one such element ensures that this information is unambiguous.
The product end user's tax registration is missing ram:ID, or the element occurs more than once. The invoice can be completed by having exactly one such element.
- Locate
ram:SpecifiedTaxRegistrationfor the product end user. - Check the
ram:IDelements it contains. - Ensure that exactly one
ram:IDelement is present. - Generate the invoice again and validate it.
<ram:SpecifiedTaxRegistration> <ram:ID>123</ram:ID> <ram:ID>456</ram:ID> </ram:SpecifiedTaxRegistration>
<ram:SpecifiedTaxRegistration> <ram:ID>123</ram:ID> </ram:SpecifiedTaxRegistration>
Technical details
The rule counts the direct ram:ID elements in ram:SpecifiedTaxRegistration and requires the count to be 1.
The rule applies to ram:ID within the product end user's tax registration.
rule/@context)assert/@test)