Provide exactly one telephone number

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

The ram:CompleteNumber element is missing from ram:TelephoneUniversalCommunication or occurs more than once. Exactly one such element is required.

What the rule means

The contact’s complete telephone number must be provided in a single ram:CompleteNumber element.

Please provide the contact’s telephone number exactly once

The contact’s telephone number at the ship-to address is missing its complete number or has it entered more than once. You can adjust the entry so that exactly one ram:CompleteNumber is present.

What to do
  1. Locate ram:TelephoneUniversalCommunication in the contact for the ship-to address.
  2. Make sure it contains exactly one ram:CompleteNumber.
  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 and requires exactly one occurrence.

Where the rule applies

The rule applies to the telephone communication of the contact at the ship-to address, in ram:TelephoneUniversalCommunication.

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