Exactly one ram:CompleteNumber for fax communication

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

What the rule means

The ram:CompleteNumber element contains the complete number for the fax communication. Exactly one such element is required for this communication entry.

Please provide exactly one complete fax number

ram:CompleteNumber is missing from the contact's fax communication entry or appears more than once. Include exactly one ram:CompleteNumber element.

What to do
  1. Find ram:FaxUniversalCommunication for the invoicee's contact.
  2. Add ram:CompleteNumber if it is missing, or remove extra occurrences so that exactly one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:FaxUniversalCommunication>
Technical details

The test counts the direct ram:CompleteNumber elements in ram:FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:CompleteNumber within ram:FaxUniversalCommunication for the invoicee's contact.

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