At most one ram:SpecifiedTaxRegistration for the invoicee

Error FX-SCH-A-000868 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:InvoiceeTradeParty. This element may appear there at most once.

What the rule means

The limit prevents multiple tax registration entries for the invoicee within this element.

Please use no more than one tax registration for the invoicee

The invoicee has multiple ram:SpecifiedTaxRegistration elements. Keep no more than one.

What to do
  1. Find ram:InvoiceeTradeParty in the invoice.
  2. Remove additional ram:SpecifiedTaxRegistration elements so that no more than one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoiceeTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoiceeTradeParty>
✓ Correct
<ram:InvoiceeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoiceeTradeParty>
Technical details

The test counts the direct ram:SpecifiedTaxRegistration elements in ram:InvoiceeTradeParty and requires a count of no more than one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:InvoiceeTradeParty, the invoicee.

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