At most one tax registration

Error FX-SCH-A-000835 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 UltimateShipToTradeParty. This element may occur no more than once there.

What the rule means

The ultimate ship-to party details may contain at most one tax registration element.

Please provide no more than one tax registration for the ultimate ship-to party

ram:SpecifiedTaxRegistration is stated more than once for the ultimate ship-to party. You can resolve this by having this element occur no more than once there.

What to do
  1. Find ram:SpecifiedTaxRegistration within ram:UltimateShipToTradeParty.
  2. Remove the extra ram:SpecifiedTaxRegistration elements so that no more than one remains.
  3. Generate the invoice again and check it once more.
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 within UltimateShipToTradeParty and requires the count to be no greater than one.

Where the rule applies

The rule applies to the ultimate ship-to party details in UltimateShipToTradeParty at delivery level.

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