Sales agent name is missing or repeated

Error FX-SCH-A-000734 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:SalesAgentTradeParty does not contain exactly one ram:Name element. The element is either missing or occurs more than once.

What the rule means

The name identifies the party specified as the sales agent. Exactly one name is required to identify this party in the agreement information.

Please provide exactly one name for the sales agent

The sales agent’s name is missing or has been entered more than once. ram:SalesAgentTradeParty must contain exactly one ram:Name.

What to do
  1. Locate ram:SalesAgentTradeParty in the agreement information.
  2. Check that exactly one ram:Name element is present.
  3. Add the missing element or remove any extra ram:Name elements.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SalesAgentTradeParty/>
✓ Correct
<ram:SalesAgentTradeParty>
  <ram:Name>Agent commercial</ram:Name>
</ram:SalesAgentTradeParty>
Technical details

The rule requires exactly one direct ram:Name element in ram:SalesAgentTradeParty.

Where the rule applies

This rule applies to ram:Name within ram:SalesAgentTradeParty in the agreement information.

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