Exactly one tax identifier for the invoice issuer

Error FX-SCH-A-000903 Factur-X

Element 'ram:ID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:ID does not occur exactly once in the invoice issuer’s SpecifiedTaxRegistration. It is either missing or occurs more than once.

What the rule means

The invoice issuer’s tax registration requires exactly one identifier so that the associated tax registration can be identified unambiguously.

Please provide exactly one tax identifier for the invoice issuer

The invoice issuer’s tax registration is missing its identifier or contains it more than once. You can resolve this by providing it exactly once.

What to do
  1. Open the tax registration in InvoicerTradeParty.
  2. Make sure SpecifiedTaxRegistration contains exactly one ram:ID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The rule checks whether ram:ID occurs exactly once in the context of SpecifiedTaxRegistration.

Where the rule applies

This rule applies to the invoice issuer’s tax registration in InvoicerTradeParty.

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