Buyer contact 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

TelephoneUniversalCommunication must contain exactly one ram:CompleteNumber element. The element is either missing or occurs more than once.

What the rule means

The buyer contact’s telephone number is provided through ram:CompleteNumber. Having exactly one number makes the telephone contact unambiguous.

Please provide exactly one telephone number for the buyer contact

The buyer contact’s telephone number is missing ram:CompleteNumber, or the element occurs more than once. Exactly one such element identifies the contact number clearly.

What to do
  1. Check ram:TelephoneUniversalCommunication for the buyer’s contact.
  2. Make sure it contains exactly one ram:CompleteNumber.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The Schematron check requires the number of direct ram:CompleteNumber child elements of ram:TelephoneUniversalCommunication to be exactly 1.

Where the rule applies

The rule applies to the telephone communication of the contact under BuyerTradeParty in the invoice header.

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