Provide no more than one tax representative identifier

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

In ram:BuyerTaxRepresentativeTradeParty, ram:ID occurs more than once. The element may appear at most once.

What the rule means

The rule limits the number of buyer tax representative identifiers to one; the ram:ID element is optional.

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

The buyer’s tax representative has multiple ram:ID elements. The identifier may be omitted, but it must not occur more than once.

What to do
  1. Locate ram:BuyerTaxRepresentativeTradeParty.
  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:BuyerTaxRepresentativeTradeParty>
  <ram:ID>A</ram:ID>
  <ram:ID>B</ram:ID>
</ram:BuyerTaxRepresentativeTradeParty>
✓ Correct
<ram:BuyerTaxRepresentativeTradeParty>
  <ram:ID>A</ram:ID>
</ram:BuyerTaxRepresentativeTradeParty>
Technical details

The check tests whether the number of direct ram:ID elements in ram:BuyerTaxRepresentativeTradeParty is at most one.

Where the rule applies

The rule applies to ram:ID within ram:BuyerTaxRepresentativeTradeParty, that is, the buyer’s tax representative.

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