Exactly one identifier for the legal organization

Error FX-SCH-A-000848 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 SpecifiedTaxRegistration or occurs more than once. The element must occur exactly once in this context.

What the rule means

ram:ID contains the tax registration identifier. Exactly one element is required to provide the registration unambiguously in this context.

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

ram:ID is missing from SpecifiedTaxRegistration for the ultimate ship-to party or is entered more than once. The rule expects exactly one identifier there.

What to do
  1. Locate SpecifiedTaxRegistration under UltimateShipToTradeParty.
  2. Make sure ram:ID occurs there exactly once.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTaxRegistration/>
✓ Correct
<ram:SpecifiedTaxRegistration>
  <ram:ID>123</ram:ID>
</ram:SpecifiedTaxRegistration>
Technical details

The test counts the direct ram:ID elements in SpecifiedTaxRegistration and requires the count to be 1.

Where the rule applies

The rule applies to ram:ID in SpecifiedTaxRegistration for the ultimate ship-to party.

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