At most one 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

Description occurs more than once in BuyerTradeParty. The element may appear at most once in this context.

What the rule means

The rule limits the buyer party’s description to at most one Description element.

Please use no more than one `Description` element for the buyer

The buyer details contain Description more than once. You can adjust the XML structure so that there is no more than one such element.

What to do
  1. Locate the repeated Description elements in BuyerTradeParty.
  2. Make sure that no more than one Description remains there.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:Description/>
  <ram:Description/>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:Description/>
</ram:BuyerTradeParty>
Technical details

The test counts the direct Description elements under BuyerTradeParty and requires a count of at most 1.

Where the rule applies

The rule applies within BuyerTradeParty.

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