Provide exactly one tax representative name

Error FX-SCH-A-000673 Factur-X

Element 'ram:Name' must occur exactly 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:Name does not occur exactly once. The element is either missing or present more than once.

What the rule means

The rule requires exactly one name for the buyer’s tax representative.

Please provide exactly one name for the buyer’s tax representative

There is not exactly one ram:Name element for the buyer’s tax representative. You can resolve this by providing the name once.

What to do
  1. Locate ram:BuyerTaxRepresentativeTradeParty.
  2. Make sure it contains exactly one ram:Name element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerTaxRepresentativeTradeParty/>
✓ Correct
<ram:BuyerTaxRepresentativeTradeParty>
  <ram:Name>Example Representative</ram:Name>
</ram:BuyerTaxRepresentativeTradeParty>
Technical details

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

Where the rule applies

The rule applies to ram:Name 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:Name)=1