Exactly one ram:Name for the invoicee

Error FX-SCH-A-000865 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 is missing from ram:InvoiceeTradeParty or occurs more than once. The element must appear exactly once.

What the rule means

The name is required so that the invoicee is identified by name in the invoice. The rule permits exactly one name element.

Please provide exactly one name for the invoicee

ram:Name is missing for the invoicee or appears more than once. The invoice must contain exactly one ram:Name.

What to do
  1. Find ram:InvoiceeTradeParty in the invoice.
  2. Add ram:Name if it is missing, or remove extra occurrences so that exactly one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoiceeTradeParty/>
✓ Correct
<ram:InvoiceeTradeParty>
  <ram:Name>Example</ram:Name>
</ram:InvoiceeTradeParty>
Technical details

The test counts the direct ram:Name elements in ram:InvoiceeTradeParty and requires exactly one.

Where the rule applies

The rule applies to ram:Name within ram:InvoiceeTradeParty, the invoicee.

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