One complete number 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

CompleteNumber is missing from TelephoneUniversalCommunication or occurs more than once. CompleteNumber must occur exactly once within this element.

What the rule means

The telephone communication entry requires exactly one CompleteNumber element for the complete number.

Please provide exactly one complete telephone number for the ultimate ship-to party

ram:CompleteNumber is missing or repeated in the contact’s telephone communication. You can adjust the entry so that ram:CompleteNumber occurs exactly once.

What to do
  1. Open ram:TelephoneUniversalCommunication within ram:DefinedTradeContact.
  2. Ensure that it contains exactly one ram:CompleteNumber.
  3. Generate the invoice again and check it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber/>
</ram:TelephoneUniversalCommunication>
Technical details

The check counts the direct ram:CompleteNumber elements within ram:TelephoneUniversalCommunication and requires exactly one occurrence.

Where the rule applies

The rule applies to TelephoneUniversalCommunication within the contact of the ultimate ship-to party.

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