Exactly one buyer agent name

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

Within ram:BuyerAgentTradeParty, ram:Name does not occur exactly once: the element is missing or appears more than once.

What the rule means

The buyer agent must be identified by exactly one name element so that the party information includes a name.

Please provide exactly one name for the buyer agent

ram:Name is missing from ram:BuyerAgentTradeParty or appears more than once. The rule requires exactly one name element.

What to do
  1. Locate ram:BuyerAgentTradeParty in the invoice agreement section.
  2. Make sure it contains exactly one ram:Name.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerAgentTradeParty/>
✓ Correct
<ram:BuyerAgentTradeParty>
  <ram:Name>...</ram:Name>
</ram:BuyerAgentTradeParty>
Technical details

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

Where the rule applies

The rule applies to ram:Name within ram:BuyerAgentTradeParty in the document-level agreement section.

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