Exactly one CompleteNumber for the telephone number

Error FX-SCH-A-000578 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. The element must be present exactly once.

What the rule means

The telephone communication must contain exactly one CompleteNumber element so that the number intended for this communication is structurally provided.

Please provide exactly one telephone number in `CompleteNumber`

The seller contact’s telephone communication is missing CompleteNumber or contains it more than once. The number of entries can be changed to exactly one.

What to do
  1. Open TelephoneUniversalCommunication for the seller contact.
  2. Ensure that CompleteNumber occurs exactly once within it.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber/>
</ram:TelephoneUniversalCommunication>
Technical details

The check counts the direct CompleteNumber elements within TelephoneUniversalCommunication; exactly one is required.

Where the rule applies

The rule applies to the seller contact’s telephone communication in TelephoneUniversalCommunication.

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