The ship-from party’s telephone communication requires exactly one complete number

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

The ram:TelephoneUniversalCommunication element does not contain exactly one ram:CompleteNumber. The element is either missing or occurs more than once.

What the rule means

ram:CompleteNumber carries the complete number for the telephone communication. Exactly one element is required so that the number is unambiguously represented in the XML structure.

Please provide exactly one complete number for the ship-from party’s telephone

The contact’s telephone communication for the ship-from party is missing the complete number or has more than one. You can complete the structure with exactly one ram:CompleteNumber.

What to do
  1. Locate the telephone communication under ram:DefinedTradeContact for ram:ShipFromTradeParty.
  2. Make sure it contains exactly one ram:CompleteNumber element.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:DefinedTradeContact>
  <ram:TelephoneUniversalCommunication/>
</ram:DefinedTradeContact>
✓ Correct
<ram:DefinedTradeContact>
  <ram:TelephoneUniversalCommunication>
    <ram:CompleteNumber/>
  </ram:TelephoneUniversalCommunication>
</ram:DefinedTradeContact>
Technical details

The check counts the direct ram:CompleteNumber elements in ram:TelephoneUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:CompleteNumber within the telephone communication of the contact at ram:ShipFromTradeParty.

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