Exactly one tax identifier for the delivery recipient

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 under ram:SpecifiedTaxRegistration. It is either missing or appears more than once.

What the rule means

ram:SpecifiedTaxRegistration contains the party’s tax registration information. Exactly one ram:ID ensures that this information is present in the expected quantity.

Please provide exactly one tax identifier for the delivery recipient

The delivery recipient’s tax registration does not contain exactly one ram:ID element. You can resolve this by making sure there is one such element.

What to do
  1. Check the delivery recipient’s ram:SpecifiedTaxRegistration.
  2. Make sure it contains exactly one ram: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>123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

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

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration of the ram:ShipToTradeParty party on 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