At most one ram:SpecifiedTaxRegistration

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

ram:SpecifiedTaxRegistration occurs more than once in ram:UltimateShipToTradeParty. This element may appear there no more than once.

What the rule means

ram:SpecifiedTaxRegistration contains a tax registration entry for the ultimate delivery recipient. Multiple occurrences would provide several tax registration entries in this context.

Please provide no more than one tax registration for the ultimate delivery recipient

The ultimate delivery recipient details contain ram:SpecifiedTaxRegistration more than once. You can resolve this by keeping only one tax registration entry.

What to do
  1. Find ram:SpecifiedTaxRegistration within ram:UltimateShipToTradeParty.
  2. Remove any extra occurrences so that the element appears no more than once.
  3. Generate the invoice again and validate 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 number of direct ram:SpecifiedTaxRegistration elements within ram:UltimateShipToTradeParty is checked; zero or one is permitted.

Where the rule applies

The rule applies to the tax registration details of the ultimate delivery recipient in ram:UltimateShipToTradeParty.

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