Provide the sales agent’s complete telephone number

Error FX-SCH-A-000740 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

ram:CompleteNumber does not occur exactly once in TelephoneUniversalCommunication. The element is missing or occurs more than once.

What the rule means

The contact person’s telephone communication requires exactly one complete number so that it is stated unambiguously.

Please provide the sales agent contact’s complete telephone number

The sales agent contact’s telephone details are missing the complete number or include it more than once. You can resolve this by including a single ram:CompleteNumber.

What to do
  1. Locate the telephone details under ram:TelephoneUniversalCommunication for the sales agent contact.
  2. Make sure there is exactly one ram:CompleteNumber there.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>123</ram:CompleteNumber>
  <ram:CompleteNumber>456</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>123</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The rule checks that there is exactly one direct ram:CompleteNumber element in the ram:TelephoneUniversalCommunication context.

Where the rule applies

The rule applies to the telephone communication of the contact person in SalesAgentTradeParty.

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