The buyer agent’s fax communication requires a complete number

Error FX-SCH-A-000654 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. CompleteNumber must appear exactly once.

What the rule means

The buyer agent’s fax communication requires exactly one CompleteNumber element. Without it, the complete number provided for this structure is absent.

Please provide the buyer agent’s complete fax number

CompleteNumber is missing or appears more than once in the buyer agent’s fax communication. Exactly one CompleteNumber element resolves this issue.

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

The test counts the direct CompleteNumber child elements of FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to FaxUniversalCommunication within the DefinedTradeContact of BuyerAgentTradeParty.

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