Exactly one complete fax number for the manufacturer contact

Error FX-SCH-A-001158 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 the element occurs more than once.

What the rule means

The manufacturer contact’s fax communication must contain exactly one complete number. A missing or repeated number does not conform to the required XML structure.

Please provide the manufacturer contact’s fax number exactly once

The complete number is missing from the manufacturer contact’s fax communication, or it appears more than once. Exactly one ram:CompleteNumber meets this structural requirement.

What to do
  1. Locate ram:FaxUniversalCommunication for the manufacturer contact.
  2. Make sure it contains exactly one ram:CompleteNumber.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:FaxUniversalCommunication/>
✓ Correct
<ram:FaxUniversalCommunication>
  <ram:CompleteNumber>+33123456789</ram:CompleteNumber>
</ram:FaxUniversalCommunication>
Technical details

Within ram:FaxUniversalCommunication, the check requires exactly one direct ram:CompleteNumber element.

Where the rule applies

The rule applies to ram:CompleteNumber in the fax communication of the contact at the manufacturer of a product on an invoice line.

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