Contact telephone number required

Error FX-SCH-A-000991 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 is missing from ram:TelephoneUniversalCommunication, or it occurs more than once. Exactly one ram:CompleteNumber must be present.

What the rule means

The ram:CompleteNumber element contains the complete telephone number. Without exactly one such number, this contact detail is structurally incomplete.

Please provide exactly one telephone number for the payee’s contact

The complete number for the contact’s telephone communication is missing or has been entered more than once. Exactly one ram:CompleteNumber completes this detail.

What to do
  1. Locate ram:TelephoneUniversalCommunication under the payee’s contact.
  2. Check that it contains exactly one ram:CompleteNumber.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>0123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

In the ram:TelephoneUniversalCommunication context, the rule checks that the number of direct ram:CompleteNumber elements is exactly one.

Where the rule applies

The rule applies to the telephone communication ram:TelephoneUniversalCommunication of the contact ram:DefinedTradeContact for the payee.

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