Multiple tax registrations for the payee

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. This element may appear at most once in this context.

What the rule means

The element contains a tax registration detail for the payee. In this context, the structure limits such details to at most one element.

Please use no more than one tax registration for the payee

ram:SpecifiedTaxRegistration appears more than once in ram:PayeeTradeParty. This element may appear at most once in this section.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Check the ram:SpecifiedTaxRegistration elements it contains and remove any extra occurrences.
  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 XPath test count(ram:SpecifiedTaxRegistration)<=1 allows zero or one ram:SpecifiedTaxRegistration element and rejects more than one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:PayeeTradeParty in the document-level payment terms.

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