At most one tax registration for the invoicee

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

Within InvoiceeTradeParty, SpecifiedTaxRegistration occurs more than once. This element may occur no more than once there.

What the rule means

The rule limits the number of tax registration entries for the invoicee to no more than one.

Please provide no more than one tax registration for the invoicee

More than one SpecifiedTaxRegistration element is present for the invoicee. You can resolve this by having only one such element in the invoice.

What to do
  1. Find SpecifiedTaxRegistration within InvoiceeTradeParty.
  2. Keep no more than one SpecifiedTaxRegistration element there.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoiceeTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoiceeTradeParty>
✓ Correct
<ram:InvoiceeTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoiceeTradeParty>
Technical details

Within InvoiceeTradeParty, the number of direct SpecifiedTaxRegistration elements is counted and limited to one.

Where the rule applies

The rule applies within InvoiceeTradeParty in the invoice settlement data.

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