Payee tax registration ID

Error FX-SCH-A-000922 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 does not occur exactly once in the payee’s ram:SpecifiedTaxRegistration. The element is either missing or occurs more than once.

What the rule means

ram:ID contains the identifier of the specified tax registration. Exactly one element ensures that the registration has a single identifier.

Please provide the payee’s tax registration ID exactly once

The payee’s tax registration is missing ram:ID, or the element occurs more than once. You can correct the count in ram:SpecifiedTaxRegistration.

What to do
  1. Open the payee’s ram:SpecifiedTaxRegistration.
  2. Add ram:ID or remove additional ram:ID elements so that exactly one remains.
  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 requires exactly one direct ram:ID child in ram:SpecifiedTaxRegistration.

Where the rule applies

Applies to the payee’s tax registration in the settlement section.

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