Provide the tax registration identifier exactly once

Error FX-SCH-A-000436 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 contains no ram:ID or contains more than one.

What the rule means

The tax registration entry must contain exactly one identifier. This makes the identifier unambiguous within that entry.

Please provide the tax registration identifier exactly once

The seller tax representative’s tax registration entry is missing ram:ID or contains it more than once. This entry must contain exactly one such element.

What to do
  1. Find the seller tax representative’s ram:SpecifiedTaxRegistration.
  2. Make sure it contains exactly one ram:ID.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID/>
</ram:SpecifiedTaxRegistration>
Technical details

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

Where the rule applies

The rule applies to ram:ID within ram:SpecifiedTaxRegistration of the seller tax representative.

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