Exactly one name for the invoice issuer

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

In InvoicerTradeParty, ram:Name is missing or occurs more than once. The rule requires exactly one occurrence.

What the rule means

The name identifies the invoice issuer in the settlement. Exactly one occurrence provides an unambiguous value.

Please provide exactly one name for the invoice issuer

The name is missing from InvoicerTradeParty or is present more than once. You can adjust the XML so that ram:Name occurs exactly once.

What to do
  1. Locate InvoicerTradeParty in the settlement.
  2. Check that ram:Name occurs exactly once.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoicerTradeParty>
  <ram:Name>Issuer A</ram:Name>
  <ram:Name>Issuer B</ram:Name>
</ram:InvoicerTradeParty>
✓ Correct
<ram:InvoicerTradeParty>
  <ram:Name>Issuer</ram:Name>
</ram:InvoicerTradeParty>
Technical details

The check counts the direct ram:Name elements in InvoicerTradeParty and requires the count to be 1.

Where the rule applies

Within InvoicerTradeParty in the settlement, the element ram:Name must occur exactly once.

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