Provide the seller name exactly once

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 does not occur exactly once in ram:SellerTradeParty. The name is either missing or appears more than once.

What the rule means

The name is a required detail for identifying the seller.

Please provide the seller’s name exactly once

The seller’s name is missing from the seller details or is entered more than once. Having exactly one ram:Name resolves this issue.

What to do
  1. Check the ram:Name elements inside ram:SellerTradeParty.
  2. Make sure that exactly one ram:Name is present there.
  3. Generate the invoice again and validate it.
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 under ram:SellerTradeParty and requires exactly one.

Where the rule applies

Within ram:SellerTradeParty, which contains the seller’s details.

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