Payee name missing or repeated

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

ram:Name does not occur exactly once in ram:PayeeTradeParty: the element is either missing or repeated.

What the rule means

The name identifies the payee. Exactly one name is required in this context.

Please provide exactly one payee name

ram:Name is missing or repeated in ram:PayeeTradeParty. Exactly one name is needed in this section.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Make sure it contains exactly one ram:Name element.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty/>
✓ Correct
<ram:PayeeTradeParty>
  <ram:Name>Payee</ram:Name>
</ram:PayeeTradeParty>
Technical details

The XPath test count(ram:Name)=1 requires exactly one ram:Name element within ram:PayeeTradeParty.

Where the rule applies

The rule applies to ram:Name within ram:PayeeTradeParty in the document-level payment terms.

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