At most one seller description

Error FX-SCH-A-000575 Factur-X

Element 'ram:Description' may occur at maximum 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The element ram:Description occurs more than once within ram:SellerTradeParty.

What the rule means

The seller description is allowed at most once within the seller details. Repeated entries do not make it clear which description is authoritative.

Please use only one description for the seller

The seller details contain multiple ram:Description elements. You can resolve this by keeping only one description in the seller section.

What to do
  1. Find the repeated ram:Description elements in ram:SellerTradeParty.
  2. Keep no more than one ram:Description element there.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty>
  <ram:Description>First description</ram:Description>
  <ram:Description>Second description</ram:Description>
</ram:SellerTradeParty>
✓ Correct
<ram:SellerTradeParty>
  <ram:Description>Seller description</ram:Description>
</ram:SellerTradeParty>
Technical details

The test counts the direct ram:Description elements in the relevant ram:SellerTradeParty and allows no more than one.

Where the rule applies

The rule applies to ram:Description within the seller details in ram:SellerTradeParty.

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