Exactly one complete number for fax communication

Error FX-SCH-A-001044 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 is required.

What the rule means

CompleteNumber contains the complete number for fax communication. The rule requires this number to be provided exactly once.

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

The seller contact’s fax communication is missing CompleteNumber or contains it more than once. Providing it exactly once resolves this issue.

What to do
  1. Find CompleteNumber in the seller contact’s FaxUniversalCommunication.
  2. Make sure exactly one CompleteNumber element is present there.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:FaxUniversalCommunication>
Technical details

The XPath counts the CompleteNumber elements in the current FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to FaxUniversalCommunication within the seller contact for an invoice line.

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