At most one payer tax registration

Error FX-SCH-A-000931 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:PayerTradeParty. The element may occur at most once.

What the rule means

The rule limits the payer's tax registration entry to at most one element.

Please provide at most one tax registration for the payer

More than one ram:SpecifiedTaxRegistration element is present for the payer. You can resolve this by limiting the entry to at most one element.

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

The rule counts the direct ram:SpecifiedTaxRegistration elements within ram:PayerTradeParty and requires no more than one.

Where the rule applies

The number of ram:SpecifiedTaxRegistration elements is checked in ram:PayerTradeParty within the settlement information.

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