At most one tax registration for the payee

Error FX-SCH-A-000910 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

There is more than one ram:SpecifiedTaxRegistration in ram:PayeeTradeParty. This element may occur no more than once.

What the rule means

The rule limits the payee's tax registration entry to no more than one so that the XML structure remains unambiguous.

Please provide no more than one tax registration for the payee

The payee has multiple ram:SpecifiedTaxRegistration elements. Remove the extra elements so that no more than one remains.

What to do
  1. Find all ram:SpecifiedTaxRegistration elements in ram:PayeeTradeParty.
  2. Remove any extra elements; the tax registration entry is optional.
  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 check verifies that there is no more than one direct ram:SpecifiedTaxRegistration element in ram:PayeeTradeParty; the element is optional.

Where the rule applies

The rule applies to the payee details in ram:PayeeTradeParty.

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