Provide exactly one ram:ID in ram:SpecifiedTaxRegistration

Error FX-SCH-A-000827 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 there more than once. Exactly one ram:ID element must be present.

What the rule means

The rule requires exactly one element in which the delivery recipient’s tax registration identifier is stated.

Please provide the delivery recipient’s tax registration identifier once

The delivery recipient’s tax registration does not contain exactly one ram:ID element. Add the missing element or remove the duplicate.

What to do
  1. Find ram:SpecifiedTaxRegistration under ram:ShipToTradeParty.
  2. Make sure this section contains exactly one ram:ID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123456789</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

Within ram:SpecifiedTaxRegistration, the count of direct ram:ID elements is checked for exactly one.

Where the rule applies

The rule applies to the delivery recipient’s tax registration under ram:ShipToTradeParty.

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