Exactly one 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 element must be present in this context.

What the rule means

CompleteNumber contains the contact person’s complete fax number. The rule requires a single entry.

Please provide exactly one complete fax number for the buyer’s contact

CompleteNumber is missing from the buyer contact’s fax communication entry or appears more than once. You can adjust the entry to contain exactly one element.

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

The test counts the direct CompleteNumber elements under FaxUniversalCommunication and requires a count of 1.

Where the rule applies

The rule applies to FaxUniversalCommunication for the buyer’s contact person.

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