At most one buyer tax registration

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

SpecifiedTaxRegistration occurs more than once in BuyerTradeParty. This element may occur there at most once.

What the rule means

The rule limits the buyer’s tax registration details to at most one entry.

Please use no more than one tax registration for the buyer

The buyer details contain multiple SpecifiedTaxRegistration elements. You can adjust the XML structure so that it contains no more than one.

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

Within BuyerTradeParty, the number of direct SpecifiedTaxRegistration elements is checked to ensure it does not exceed one.

Where the rule applies

The rule applies to the buyer’s tax registration details in BuyerTradeParty in the invoice header.

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