Exactly one ram:ID in ram:SpecifiedTaxRegistration

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

The ram:SpecifiedTaxRegistration is missing ram:ID or contains it more than once. It must contain exactly one ram:ID.

What the rule means

The ram:ID contains the tax registration identifier specified in this ram:SpecifiedTaxRegistration.

Please provide exactly one `ram:ID` for the payee's tax registration

The payee's tax registration does not contain exactly one ram:ID. Having a single element satisfies this check.

What to do
  1. Locate the payee'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 check verifies that ram:SpecifiedTaxRegistration contains exactly one direct ram:ID element.

Where the rule applies

The payee's ram:SpecifiedTaxRegistration.

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