Provide the ship-from identifier no more than once

Error FX-SCH-A-000794 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

ram:ID occurs more than once in ram:ShipFromTradeParty.

What the rule means

The rule limits the number of ship-from identifiers to at most one. Under this rule, ram:ID may be absent.

Please provide the ship-from identifier no more than once

ram:ID appears more than once in ram:ShipFromTradeParty. Remove the extra occurrences so that the identifier is provided no more than once.

What to do
  1. Locate ram:ShipFromTradeParty in the delivery information.
  2. Check whether ram:ID occurs more than once there and remove any extra occurrences.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ShipFromTradeParty>
  <ram:ID/>
  <ram:ID/>
</ram:ShipFromTradeParty>
✓ Correct
<ram:ShipFromTradeParty>
  <ram:ID/>
</ram:ShipFromTradeParty>
Technical details

The Schematron condition checks whether the number of direct ram:ID elements in the context is at most one.

Where the rule applies

The rule applies to ram:ID in ram:ShipFromTradeParty within the delivery information.

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