Exactly one name for the invoicing party

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

ram:InvoicerTradeParty does not contain exactly one ram:Name element. The name is either missing or occurs more than once.

What the rule means

The rule requires exactly one name entry for the invoicing party.

Please provide exactly one name for the invoicing party

The invoicing party’s details are missing ram:Name, or the element occurs more than once. The XML entry can be adjusted to contain exactly one name element.

What to do
  1. Find ram:InvoicerTradeParty in the settlement details.
  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:InvoicerTradeParty/>
✓ Correct
<ram:InvoicerTradeParty>
  <ram:Name>Example Invoicing Party</ram:Name>
</ram:InvoicerTradeParty>
Technical details

The test counts the direct ram:Name elements in ram:InvoicerTradeParty and requires a count of 1.

Where the rule applies

The rule applies to ram:Name within ram:InvoicerTradeParty in the settlement details.

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