Exactly one buyer tax registration identifier

Error FX-SCH-A-000425 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 ram:SpecifiedTaxRegistration or occurs more than once. It must occur exactly once.

What the rule means

A buyer tax registration contains exactly one identifier.

Please include the buyer’s tax registration identifier exactly once

The buyer’s tax registration is missing ram:ID or contains it more than once. You can adjust the entry so the element occurs exactly once.

What to do
  1. Check the buyer’s ram:SpecifiedTaxRegistration.
  2. Make sure it contains ram:ID exactly once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID/>
</ram:SpecifiedTaxRegistration>
Technical details

The XPath counts direct ram:ID elements in the current ram:SpecifiedTaxRegistration and requires the count to be 1.

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within ram:BuyerTradeParty.

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