A tax registration identifier must be present

Error FX-SCH-A-001121 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

SpecifiedTaxRegistration does not contain exactly one ID element. The element is missing or occurs more than once.

What the rule means

ID contains the ultimate ship-to party’s tax registration identifier. The rule requires exactly one such identifier in this registration element.

Please provide exactly one tax registration identifier for the ultimate ship-to party

The tax registration element for the ultimate ship-to party is missing ID or contains it more than once. Exactly one ID element is required.

What to do
  1. Open the ultimate ship-to party’s SpecifiedTaxRegistration.
  2. Make sure it contains exactly one ID element.
  3. Generate the invoice again and validate it once more.
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 a count of 1.

Where the rule applies

The rule applies to SpecifiedTaxRegistration for an invoice line’s ultimate ship-to party.

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