Provide the buyer contact’s complete telephone number

Error FX-SCH-A-000289 Factur-X

Element 'ram:CompleteNumber' 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

CompleteNumber is missing from TelephoneUniversalCommunication or occurs more than once. Exactly one CompleteNumber element must be present.

What the rule means

The buyer contact’s telephone communication details must contain exactly one field for the complete number.

Please provide exactly one complete telephone number for the buyer contact

The buyer contact’s telephone communication details are missing CompleteNumber or contain it more than once. You can adjust the structure so that it contains exactly one such element.

What to do
  1. Find TelephoneUniversalCommunication under DefinedTradeContact in BuyerTradeParty.
  2. Make sure it contains exactly one CompleteNumber element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:TelephoneUniversalCommunication/>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:TelephoneUniversalCommunication>
      <ram:CompleteNumber/>
    </ram:TelephoneUniversalCommunication>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
Technical details

Within TelephoneUniversalCommunication, the rule checks that exactly one direct CompleteNumber element is present.

Where the rule applies

The rule applies to the contact’s telephone communication details under BuyerTradeParty and DefinedTradeContact.

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