Exactly one seller name

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

What the rule means

The name identifies the seller in the invoice details. The rule requires one clearly structured name entry.

Please provide exactly one name for the seller

The seller details are missing a name or contain it more than once. Provide exactly one ram:Name element in SellerTradeParty.

What to do
  1. Find SellerTradeParty in the seller details.
  2. Check that it contains exactly one ram:Name element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty/>
✓ Correct
<ram:SellerTradeParty>
  <ram:Name>Example Seller</ram:Name>
</ram:SellerTradeParty>
Technical details

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

Where the rule applies

The rule applies to SellerTradeParty in the seller details.

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