Invoicee name required

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 does not occur exactly once within ram:InvoiceeTradeParty. The element is missing or occurs more than once.

What the rule means

The invoicee must be represented in the XML structure by exactly one ram:Name element. Both a missing element and multiple occurrences violate this requirement.

Please provide the invoicee name exactly once

ram:Name is missing from the invoicee or appears more than once. With exactly one such element, the invoice can be validated again.

What to do
  1. Locate ram:InvoiceeTradeParty.
  2. Ensure it contains exactly one ram:Name element.
  3. Generate the invoice again and validate it again.
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 of ram:InvoiceeTradeParty and requires exactly one occurrence.

Where the rule applies

The rule applies to ram:Name within ram:InvoiceeTradeParty.

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