Include the ship-to party’s tax identifier exactly once

Error FX-SCH-A-001103 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 ram:SpecifiedTaxRegistration. The element is either missing or appears more than once.

What the rule means

The ship-to party’s tax registration must contain exactly one identifier.

Please include the ship-to party’s tax identifier exactly once

The ship-to party’s tax registration is missing ram:ID, or the element appears more than once. You can correct the number of occurrences in the invoice line.

What to do
  1. Find ram:SpecifiedTaxRegistration for the ship-to party in the invoice line.
  2. Make sure it 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>...</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The check counts the direct ram:ID elements in ram:SpecifiedTaxRegistration and requires a count of 1.

Where the rule applies

This rule applies to the ship-to party’s tax registration within an invoice line.

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