At most one tax registration for the ultimate ship-to party

Error FX-SCH-A-001111 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:UltimateShipToTradeParty.

What the rule means

In this context, no more than one tax registration is permitted for the ultimate ship-to party.

Please provide at most one tax registration for the ultimate ship-to party

ram:SpecifiedTaxRegistration appears more than once for the ultimate ship-to party. Remove the duplicate entry to resolve the repeated information.

What to do
  1. Remove any additional ram:SpecifiedTaxRegistration entries from ram:UltimateShipToTradeParty.
  2. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:UltimateShipToTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:UltimateShipToTradeParty>
✓ Correct
<ram:UltimateShipToTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:UltimateShipToTradeParty>
Technical details

The check counts the direct ram:SpecifiedTaxRegistration elements in the current ram:UltimateShipToTradeParty and permits at most one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:UltimateShipToTradeParty of an invoice line.

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