Provide a complete telephone number

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

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

What the rule means

ram:CompleteNumber contains the complete telephone number. Requiring exactly one element ensures that the telephone number is provided unambiguously.

Please provide the sales agent’s complete telephone number

The sales agent contact’s telephone number is missing ram:CompleteNumber, or the element occurs more than once. You can resolve this by providing exactly one such element.

What to do
  1. Locate ram:TelephoneUniversalCommunication in the sales agent’s contact.
  2. Provide exactly one ram:CompleteNumber element inside it.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>030123456</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The check counts the ram:CompleteNumber elements directly contained in ram:TelephoneUniversalCommunication and requires the count to be one.

Where the rule applies

In the sales agent’s contact telephone number.

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