At most one identifier for the ultimate delivery recipient

Error FX-SCH-A-001108 Factur-X

Element 'ram:ID' may occur at maximum 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

More than one ram:ID element is present under ram:UltimateShipToTradeParty. The rule allows no more than one such element.

What the rule means

The rule limits the number of identifiers for the ultimate delivery recipient to at most one. A missing ram:ID is permitted by this count check.

Please use no more than one identifier for the ultimate delivery recipient

Several ram:ID elements are entered under ram:UltimateShipToTradeParty. You can resolve this by keeping no more than one such element there.

What to do
  1. Check the ram:ID elements under ram:UltimateShipToTradeParty.
  2. Remove any extra ram:ID elements so that no more than one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:UltimateShipToTradeParty>
  <ram:ID>123</ram:ID>
  <ram:ID>456</ram:ID>
</ram:UltimateShipToTradeParty>
✓ Correct
<ram:UltimateShipToTradeParty>
  <ram:ID>123</ram:ID>
</ram:UltimateShipToTradeParty>
Technical details

The Schematron check counts the direct ram:ID elements under ram:UltimateShipToTradeParty and requires a count less than or equal to 1.

Where the rule applies

The rule applies to ram:ID inside ram:UltimateShipToTradeParty in the delivery information of an invoice line.

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