Telephone communication requires exactly one complete 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

The element ram:CompleteNumber is missing from ram:TelephoneUniversalCommunication or occurs more than once. It must occur exactly once.

What the rule means

ram:CompleteNumber contains the complete telephone number for telephone communication. Exactly one such element keeps this contact detail unambiguously structured.

Please provide exactly one complete telephone number

The seller contact’s telephone communication is missing ram:CompleteNumber or contains it more than once. You can correct the structure by including exactly one such element.

What to do
  1. Check ram:TelephoneUniversalCommunication for the seller’s contact.
  2. Add a ram:CompleteNumber element there or remove extras so that exactly one remains.
  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 direct ram:CompleteNumber elements in ram:TelephoneUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:CompleteNumber within ram:TelephoneUniversalCommunication for the seller’s contact.

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