Complete fax number

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

ram:CompleteNumber is missing from ram:FaxUniversalCommunication or occurs more than once. The element must be present exactly once.

What the rule means

The contact’s fax communication requires exactly one element for the complete number.

Please provide exactly one complete fax number for the contact

The contact’s fax communication is missing the complete number or has it entered more than once. Exactly one ram:CompleteNumber is required.

What to do
  1. Find ram:FaxUniversalCommunication in the contact details of the buyer’s tax representative.
  2. Check how many times ram:CompleteNumber occurs there.
  3. Add or remove entries so that the element is present exactly once.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber/>
</ram:FaxUniversalCommunication>
Technical details

The test counts the direct ram:CompleteNumber elements in ram:FaxUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:FaxUniversalCommunication in the contact of the buyer’s tax representative.

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