Provide exactly one tax identifier for the invoice recipient

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

The invoice recipient’s ram:SpecifiedTaxRegistration does not contain exactly one ram:ID. The element is either missing or occurs more than once.

What the rule means

ram:ID contains the identifier for the tax registration. Exactly one identifier is required in this tax registration.

Please provide exactly one tax identifier for the invoice recipient

The invoice recipient’s tax registration is missing ram:ID or contains it more than once. Exactly one entry is required for this tax registration.

What to do
  1. Locate ram:SpecifiedTaxRegistration for the invoice recipient.
  2. Make sure it contains exactly one ram:ID.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The XPath counts the direct ram:ID elements in ram:SpecifiedTaxRegistration and requires exactly one.

Where the rule applies

The invoice recipient’s tax registration must contain one ram:ID.

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