At most one global identifier for the payee

Error FX-SCH-A-000468 Factur-X

Element 'ram:GlobalID' may occur at maximum 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:GlobalID occurs more than once in ram:PayeeTradeParty. This element may occur no more than once there.

What the rule means

The global identifier assigns an identifier to the payee. Multiple global identifiers at this location do not conform to the specified XML structure.

Please use at most one global identifier for the payee

More than one ram:GlobalID element is recorded for the payee. You can correct the invoice by limiting the number to one at most.

What to do
  1. Locate ram:PayeeTradeParty in the invoice data.
  2. Limit the ram:GlobalID elements it contains to one at most.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:GlobalID>123</ram:GlobalID>
  <ram:GlobalID>456</ram:GlobalID>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:GlobalID>123</ram:GlobalID>
</ram:PayeeTradeParty>
Technical details

The rule counts the direct ram:GlobalID elements in ram:PayeeTradeParty and fails if the count is greater than one.

Where the rule applies

The rule applies to ram:PayeeTradeParty at document level.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:PayeeTradeParty
Test expression (assert/@test)
count(ram:GlobalID)<=1