Payee tax registration at most once

Error FX-SCH-A-000988 Factur-X

Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:SpecifiedTaxRegistration occurs more than once in ram:PayeeTradeParty. The element may occur at most once, but it may also be absent.

What the rule means

The tax registration is an optional detail of the payee. The rule limits it to one occurrence within this element.

Please include the payee’s tax registration no more than once

The payee’s tax registration has been entered more than once. Remove additional entries so it occurs no more than once.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Check its ram:SpecifiedTaxRegistration elements and remove any additional entries.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:PayeeTradeParty>
Technical details

The rule counts the direct ram:SpecifiedTaxRegistration elements in ram:PayeeTradeParty and passes when the count is at most one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within the payee ram:PayeeTradeParty in the payment terms.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:PayeeTradeParty
Test expression (assert/@test)
count(ram:SpecifiedTaxRegistration)<=1