The ship-from party’s fax communication requires exactly one complete number

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

The ram:FaxUniversalCommunication element does not contain exactly one ram:CompleteNumber. The element is either missing or occurs more than once.

What the rule means

ram:CompleteNumber carries the complete number for the fax communication. Exactly one element is required so that the number is unambiguously represented in the XML structure.

Please provide exactly one complete number for the ship-from party’s fax

The contact’s fax communication for the ship-from party is missing the complete number or has more than one. You can complete the structure with exactly one ram:CompleteNumber.

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

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

Where the rule applies

The rule applies to ram:CompleteNumber within the fax communication of the contact at ram:ShipFromTradeParty.

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