Provide one number for fax communication

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

CompleteNumber is missing from FaxUniversalCommunication or occurs more than once. The element must occur exactly once.

What the rule means

CompleteNumber contains the complete number for the specified fax communication. The rule requires exactly one such value.

Please provide one complete fax number for the seller’s contact

The seller contact’s fax communication is missing CompleteNumber or contains it more than once. You can resolve this by including the element exactly once.

What to do
  1. Locate the FaxUniversalCommunication of the seller’s DefinedTradeContact.
  2. Make sure it contains exactly one CompleteNumber.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber/>
</ram:FaxUniversalCommunication>
Technical details

The rule counts the CompleteNumber elements inside FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to the fax communication of the seller’s defined contact (DefinedTradeContact).

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