Provide an identifier for the final delivery party

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 ram:SpecifiedTaxRegistration within UltimateShipToTradeParty, or the element occurs more than once. It must occur exactly once.

What the rule means

ram:ID contains the identifier in the specified tax registration of the final delivery party. The rule requires exactly one such entry.

Please provide the final delivery party’s identifier exactly once

ram:ID is missing from the final delivery party’s tax registration, or the element has been entered more than once. You can correct the number of entries in that tax registration.

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

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

Where the rule applies

The rule applies to ram:SpecifiedTaxRegistration within UltimateShipToTradeParty.

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