Fax number requires a complete number

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

Under ram:FaxUniversalCommunication, ram:CompleteNumber does not occur exactly once. The rule requires exactly one such element.

What the rule means

ram:CompleteNumber carries the complete number for the contact’s fax communication. Exactly one element follows the expected XML structure.

Please include exactly one complete fax number for the contact

The contact’s fax communication is missing ram:CompleteNumber, or the element occurs more than once. You can adjust the XML so that it contains exactly one element.

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

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

Where the rule applies

Applies to the contact’s fax communication under DefinedTradeContact in ShipToTradeParty.

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