Exactly one ram:CompleteNumber for telephone communication

Error FX-SCH-A-000838 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 is missing from ram:TelephoneUniversalCommunication or occurs more than once. The element must appear exactly once.

What the rule means

ram:CompleteNumber contains the complete telephone number. Exactly one element is required for the telephone entry to be structured unambiguously.

Please provide exactly one complete telephone number for the ultimate delivery recipient

The contact’s telephone communication entry does not contain ram:CompleteNumber exactly once. You can resolve this by using exactly one element for the complete number.

What to do
  1. Find ram:TelephoneUniversalCommunication in the ultimate delivery recipient’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 rule checks whether ram:TelephoneUniversalCommunication contains exactly one direct ram:CompleteNumber element.

Where the rule applies

The rule applies to the telephone communication entry ram:TelephoneUniversalCommunication within the ultimate delivery recipient’s ram:DefinedTradeContact.

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