Exactly one tax registration identifier

Error FX-SCH-A-001001 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 is missing from, or occurs more than once in, the payee’s ram:SpecifiedTaxRegistration. It must occur exactly once.

What the rule means

ram:ID contains the tax registration identifier. Exactly one element ensures that a single identifier is provided here.

Please provide exactly one tax registration identifier for the payee

The payee’s tax registration is missing its identifier or contains it more than once. You can correct the entry in ram:SpecifiedTaxRegistration.

What to do
  1. Find the payee’s ram:SpecifiedTaxRegistration.
  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/>
</ram:SpecifiedTaxRegistration>
Technical details

The rule checks that ram:SpecifiedTaxRegistration contains exactly one direct ram:ID element.

Where the rule applies

The rule applies to the payee’s tax registration in the payment terms.

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