Exactly one ram:Name in ram:PayerTradeParty

Error FX-SCH-A-000928 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:PayerTradeParty or occurs more than once. It must occur exactly once.

What the rule means

The payer’s name must be provided exactly once in this XML context.

Please include the payer’s name exactly once

ram:PayerTradeParty does not have exactly one ram:Name. Add or correct the element in the XML.

What to do
  1. Find ram:PayerTradeParty in the invoice.
  2. Make sure it contains exactly one ram:Name element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:PayerTradeParty/>
✓ Correct
<ram:PayerTradeParty>
  <ram:Name/>
</ram:PayerTradeParty>
Technical details

The rule counts direct ram:Name elements under ram:PayerTradeParty and requires exactly one occurrence.

Where the rule applies

The rule applies to the name within document-level ram:PayerTradeParty.

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