Exactly one complete number for telephone communication

Error FX-SCH-A-001045 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. Exactly one CompleteNumber element is required.

What the rule means

CompleteNumber contains the complete number for telephone communication. The rule requires this number to be provided exactly once.

Please provide exactly one complete number for the seller contact’s telephone communication

The seller contact’s telephone communication is missing CompleteNumber or contains it more than once. Providing it exactly once resolves this issue.

What to do
  1. Find CompleteNumber in the seller contact’s TelephoneUniversalCommunication.
  2. Make sure exactly one CompleteNumber element is present there.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The XPath counts the CompleteNumber elements in the current TelephoneUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to TelephoneUniversalCommunication within the seller contact for an invoice line.

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