Exactly one tax identifier

Error FX-SCH-A-000827 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:SpecifiedTaxRegistration does not contain exactly one ram:ID. The element must appear once; it must not be missing or occur more than once.

What the rule means

ram:ID contains the tax registration identifier. Exactly one value is required to identify this registration unambiguously.

Please provide the goods recipient’s tax identifier exactly once

The goods recipient’s tax registration does not contain ram:ID exactly once. Add the element once or remove any extra occurrences.

What to do
  1. Find ram:SpecifiedTaxRegistration for the goods recipient.
  2. Make sure it contains exactly one ram:ID element.
  3. Generate the invoice again and check it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>valeur</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The check requires exactly one direct ram:ID element within ram:SpecifiedTaxRegistration.

Where the rule applies

The rule applies to the tax registration ram:SpecifiedTaxRegistration of the goods recipient ram:ShipToTradeParty.

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