Exactly one name for the payee

Error FX-SCH-A-000469 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 occurs more than once.

What the rule means

The name identifies the payee. The XML structure requires exactly one ram:Name element for this purpose.

Please provide exactly one name for the payee

The payee’s name is missing or entered more than once. You can correct this by using exactly one ram:Name element.

What to do
  1. Locate ram:PayeeTradeParty in the invoice data.
  2. Ensure that 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:PayeeTradeParty/>
✓ Correct
<ram:PayeeTradeParty>
  <ram:Name>Empfänger GmbH</ram:Name>
</ram:PayeeTradeParty>
Technical details

The rule counts the direct ram:Name elements in ram:PayeeTradeParty and requires the count to be one.

Where the rule applies

The rule applies to ram:PayeeTradeParty at document level.

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