Provide exactly one telephone number

Error FX-SCH-A-000893 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:CompleteNumber does not occur exactly once in ram:TelephoneUniversalCommunication. It is either missing or occurs more than once.

What the rule means

ram:CompleteNumber contains the telephone number for this communication method. Requiring exactly one element ensures the telephone number is stated unambiguously.

Please provide exactly one telephone number for the contact

ram:CompleteNumber is missing or occurs more than once in the contact’s telephone communication. You can adjust this information in the invoice.

What to do
  1. Open the contact’s telephone communication under InvoicerTradeParty.
  2. Make sure ram:TelephoneUniversalCommunication contains exactly one ram:CompleteNumber element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The test counts the child elements ram:CompleteNumber in ram:TelephoneUniversalCommunication and requires a count of 1.

Where the rule applies

The rule applies to the contact’s telephone communication under InvoicerTradeParty.

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