At most one ram:ID in ProductEndUserTradeParty

Error FX-SCH-A-000708 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:ProductEndUserTradeParty. This element may appear there no more than once.

What the rule means

The structure limits the identifier of ProductEndUserTradeParty to a single entry. Multiple entries do not conform to the defined XML structure.

Please use no more than one `ram:ID` for `ProductEndUserTradeParty`

The invoice contains multiple ram:ID elements for ProductEndUserTradeParty. You can adjust the XML structure so that no more than one entry is present.

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

The check verifies that the number of direct ram:ID elements in the rule context is no greater than one.

Where the rule applies

The rule applies to ram:ID within the header agreement’s ram:ProductEndUserTradeParty element.

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