Exactly one complete telephone number for the manufacturer contact

Error FX-SCH-A-001159 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 the element occurs more than once.

What the rule means

The manufacturer contact’s telephone communication must contain exactly one complete number. A missing or repeated number does not conform to the required XML structure.

Please provide the manufacturer contact’s telephone number exactly once

The complete number is missing from the manufacturer contact’s telephone communication, or it appears more than once. Exactly one ram:CompleteNumber meets this structural requirement.

What to do
  1. Locate ram:TelephoneUniversalCommunication for the manufacturer contact.
  2. Make sure it contains exactly one ram:CompleteNumber.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

Within ram:TelephoneUniversalCommunication, the check requires exactly one direct ram:CompleteNumber element.

Where the rule applies

The rule applies to ram:CompleteNumber in the telephone communication of the contact at the manufacturer of a product on an invoice line.

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