At most one ram:Description for the buyer

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

ram:Description occurs more than once in ram:BuyerTradeParty. The element may occur at most once; it may also be absent.

What the rule means

In this context, the buyer information allows at most one description element, preventing multiple descriptions in this field.

Please provide the buyer description no more than once

The buyer information contains ram:Description more than once. The element may occur at most once and may also be omitted.

What to do
  1. Check ram:BuyerTradeParty for repeated ram:Description elements.
  2. Remove any additional ram:Description elements or omit the element.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:Description>First</ram:Description>
  <ram:Description>Second</ram:Description>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:Description>Buyer description</ram:Description>
</ram:BuyerTradeParty>
Technical details

The XPath test count(ram:Description)<=1 limits the number of direct ram:Description child elements to at most one.

Where the rule applies

The rule applies to ram:Description within the buyer information ram:BuyerTradeParty.

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