At most one contact for the buyer

Error FX-SCH-A-000288 Factur-X

Element 'ram:DefinedTradeContact' 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:BuyerTradeParty contains more than one ram:DefinedTradeContact element.

What the rule means

At most one contact may be provided for the buyer.

Please provide no more than one contact for the buyer

More than one ram:DefinedTradeContact element is recorded for the buyer. Limit the entry to at most one contact.

What to do
  1. Keep no more than one ram:DefinedTradeContact element in ram:BuyerTradeParty.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact/>
  <ram:DefinedTradeContact/>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact/>
</ram:BuyerTradeParty>
Technical details

Within ram:BuyerTradeParty, the number of direct ram:DefinedTradeContact elements is counted; zero or one is allowed.

Where the rule applies

The rule applies to ram:DefinedTradeContact within ram:BuyerTradeParty.

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