Exactly one ram:CompleteNumber for telephone communication

Error FX-SCH-A-000715 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 occurs more than once. The element must appear exactly once.

What the rule means

The XML structure requires exactly one complete number within the contact’s telephone communication information. An absent or repeated value does not meet this structural requirement.

Please provide exactly one `ram:CompleteNumber` for telephone communication

The contact’s telephone communication information is missing ram:CompleteNumber, or it contains it more than once. Providing exactly one ram:CompleteNumber resolves this issue.

What to do
  1. Locate ram:CompleteNumber within ram:TelephoneUniversalCommunication.
  2. Ensure that ram:CompleteNumber occurs exactly once.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:TelephoneUniversalCommunication/>
✓ Correct
<ram:TelephoneUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:TelephoneUniversalCommunication>
Technical details

The check verifies that exactly one direct ram:CompleteNumber element is present in the rule context.

Where the rule applies

The rule applies to ram:CompleteNumber within the ram:TelephoneUniversalCommunication element of ram:DefinedTradeContact for ram:ProductEndUserTradeParty.

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