Exactly one complete telephone number

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

ram:CompleteNumber is missing from ram:TelephoneUniversalCommunication, or it does not occur there exactly once.

What the rule means

The telephone communication of the defined seller contact must contain exactly one ram:CompleteNumber element. This element represents the complete number value in the XML structure.

Please provide exactly one complete telephone number for the seller contact

ram:CompleteNumber does not occur exactly once in the seller contact's telephone communication. The XML structure requires exactly one such element there.

What to do
  1. Open ram:TelephoneUniversalCommunication in the ram:DefinedTradeContact of the seller item.
  2. Make sure this element contains exactly one ram:CompleteNumber.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

In the context of ram:TelephoneUniversalCommunication, the count check requires exactly one direct ram:CompleteNumber element.

Where the rule applies

The rule applies to ram:TelephoneUniversalCommunication within the ram:DefinedTradeContact of the seller item on 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