Provide the buyer contact’s complete fax number

Error FX-SCH-A-000696 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. Exactly one CompleteNumber element must be present.

What the rule means

The buyer contact’s fax communication details must contain exactly one field for the complete number.

Please provide exactly one complete fax number for the buyer contact

The buyer contact’s fax communication details are missing CompleteNumber or contain it more than once. You can adjust the structure so that it contains exactly one such element.

What to do
  1. Find FaxUniversalCommunication under DefinedTradeContact in BuyerTradeParty.
  2. Make sure it contains exactly one CompleteNumber element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:FaxUniversalCommunication/>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:FaxUniversalCommunication>
      <ram:CompleteNumber/>
    </ram:FaxUniversalCommunication>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
Technical details

Within FaxUniversalCommunication, the rule checks that exactly one direct CompleteNumber element is present.

Where the rule applies

The rule applies to the contact’s fax communication details under BuyerTradeParty and DefinedTradeContact.

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