At most one tax registration for the delivery location

Error FX-SCH-A-000817 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 ShipToTradeParty. The element may occur there no more than once.

What the rule means

The rule limits the tax-registration details for the delivery location to one entry.

Please include the delivery location’s tax registration no more than once

The invoice contains more than one tax-registration entry for the delivery location. You can adjust the details so they occur no more than once.

What to do
  1. Find the ram:SpecifiedTaxRegistration elements in ShipToTradeParty.
  2. Remove duplicate entries so that no more than one element remains.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:ShipToTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:ShipToTradeParty>
✓ Correct
<ram:ShipToTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:ShipToTradeParty>
Technical details

The XPath test counts the direct ram:SpecifiedTaxRegistration elements in context and permits no more than one.

Where the rule applies

Applies to the delivery-location details in ShipToTradeParty.

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