At most one tax registration for the invoice issuer

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

In InvoicerTradeParty, ram:SpecifiedTaxRegistration occurs more than once. The rule does not allow a second occurrence.

What the rule means

The element contains a tax registration value for the invoice issuer. This section allows at most one such value.

Please use at most one tax registration for the invoice issuer

ram:SpecifiedTaxRegistration occurs more than once in InvoicerTradeParty. You can adjust the XML so that it contains no more than one such element.

What to do
  1. Locate InvoicerTradeParty in the settlement.
  2. Check whether ram:SpecifiedTaxRegistration occurs more than once and remove any extra occurrences.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoicerTradeParty>
  <ram:SpecifiedTaxRegistration/>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoicerTradeParty>
✓ Correct
<ram:InvoicerTradeParty>
  <ram:SpecifiedTaxRegistration/>
</ram:InvoicerTradeParty>
Technical details

The check counts the direct ram:SpecifiedTaxRegistration elements in InvoicerTradeParty and requires a count of at most 1.

Where the rule applies

Within InvoicerTradeParty in the settlement, ram:SpecifiedTaxRegistration may occur at most once.

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