Provide no more than one sales agent tax registration

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

The ram:SalesAgentTradeParty element contains more than one ram:SpecifiedTaxRegistration. This context allows no more than one tax registration.

What the rule means

The maximum limits the sales agent’s tax registration entry to one in this location.

Please provide no more than one tax registration for the sales agent

Several ram:SpecifiedTaxRegistration elements are present in the sales agent section. This element may appear there no more than once.

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

The rule counts the direct ram:SpecifiedTaxRegistration elements under ram:SalesAgentTradeParty and allows zero or one.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:SalesAgentTradeParty in the agreement.

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