At most one tax representative identifier

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

The ram:SellerTaxRepresentativeTradeParty element contains more than one ram:ID element. In this context, ram:ID may occur at most once.

What the rule means

The rule limits the number of tax representative identifiers to one. It does not require an identifier to be present.

Please provide no more than one identifier for the tax representative

More than one ram:ID element is provided for the tax representative. This rule allows no more than one here.

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

The test counts ram:ID elements directly under ram:SellerTaxRepresentativeTradeParty and requires a count of no more than one.

Where the rule applies

The rule applies to ram:ID elements within ram:SellerTaxRepresentativeTradeParty.

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