The buyer agent’s telephone communication requires a complete number

Error FX-SCH-A-000655 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 appear exactly once.

What the rule means

The buyer agent’s telephone communication requires exactly one CompleteNumber element. Without it, the complete number provided for this structure is absent.

Please provide the buyer agent’s complete telephone number

CompleteNumber is missing or appears more than once in the buyer agent’s telephone communication. Exactly one CompleteNumber element resolves this issue.

What to do
  1. Find TelephoneUniversalCommunication in the buyer agent’s contact.
  2. Make sure it contains exactly one CompleteNumber element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerAgentTradeParty>
  <ram:DefinedTradeContact>
    <ram:TelephoneUniversalCommunication/>
  </ram:DefinedTradeContact>
</ram:BuyerAgentTradeParty>
✓ Correct
<ram:BuyerAgentTradeParty>
  <ram:DefinedTradeContact>
    <ram:TelephoneUniversalCommunication>
      <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
    </ram:TelephoneUniversalCommunication>
  </ram:DefinedTradeContact>
</ram:BuyerAgentTradeParty>
Technical details

The test counts the direct CompleteNumber child elements of TelephoneUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to TelephoneUniversalCommunication within the DefinedTradeContact of BuyerAgentTradeParty.

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