Multiple buyer agent identifiers

Error FX-SCH-A-000649 Factur-X

Element 'ram:ID' 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:BuyerAgentTradeParty contains more than one ram:ID. The element may occur no more than once.

What the rule means

ram:ID contains an identifier for the buyer agent. The rule limits the number of these identifiers to one at most.

Please provide no more than one identifier for the buyer agent

More than one identifier is included for the buyer agent. You can adjust the invoice so that it contains no more than one ram:ID element.

What to do
  1. Find ram:BuyerAgentTradeParty.
  2. Check the ram:ID elements it contains.
  3. Remove any additional ram:ID elements so that no more than one remains.
  4. Generate the invoice again and validate it again.
Technical details

The XPath test requires ram:ID to occur no more than once within ram:BuyerAgentTradeParty; zero occurrences are permitted.

Where the rule applies

The rule applies within ram:BuyerAgentTradeParty in the seller-buyer agreement.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerAgentTradeParty
Test expression (assert/@test)
count(ram:ID)<=1