Provide no more than one tax representative identifier for the seller

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

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

What the rule means

The rule limits the seller’s tax representative identifiers to no more than one within the tax representative details.

Please provide no more than one identifier for the seller’s tax representative

The seller’s tax representative details contain multiple ram:ID elements. This section allows no more than one such element.

What to do
  1. Remove any extra ram:ID elements from ram:SellerTaxRepresentativeTradeParty.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty>
  <ram:ID>A</ram:ID>
  <ram:ID>B</ram:ID>
</ram:SellerTaxRepresentativeTradeParty>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:ID>A</ram:ID>
</ram:SellerTaxRepresentativeTradeParty>
Technical details

The test counts direct ram:ID elements in the ram:SellerTaxRepresentativeTradeParty context and allows no more than one.

Where the rule applies

The rule applies to ram:ID within ram:SellerTaxRepresentativeTradeParty in the invoice agreement.

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