Contact fax number required

Error FX-SCH-A-000678 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:FaxUniversalCommunication does not contain exactly one ram:CompleteNumber element. The element is missing or occurs more than once.

What the rule means

ram:CompleteNumber is the required complete number in the contact’s fax communication.

Please provide exactly one complete fax number for the contact

The contact’s fax communication is missing ram:CompleteNumber, or the element is present more than once. You can correct this by including exactly one element.

What to do
  1. Find ram:FaxUniversalCommunication for the tax representative’s contact.
  2. Make sure it contains exactly one ram:CompleteNumber element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber/>
</ram:FaxUniversalCommunication>
Technical details

The rule counts the direct child elements ram:CompleteNumber of ram:FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to the fax communication of the contact specified in BuyerTaxRepresentativeTradeParty.

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