Exactly one name for the buyer’s tax representative

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

There is not exactly one ram:Name in ram:BuyerTaxRepresentativeTradeParty. The element is either missing or occurs more than once.

What the rule means

The name of the buyer’s tax representative must be specified exactly once in this element.

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

ram:Name is missing or occurs more than once for the buyer’s tax representative. This section requires exactly one name.

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

The rule checks whether exactly one ram:Name element occurs in ram:BuyerTaxRepresentativeTradeParty.

Where the rule applies

In the ram:BuyerTaxRepresentativeTradeParty element for the buyer’s tax representative.

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