Symptom
When trying to change the status or other field from a ticket, the below error comes up:
- &1 with ID &2 contains multiple references to &3 with ID &4. (&1, &2, &3, &4 are placeholders)
Environment
- SAP Cloud for Customer
- SAP Cloud Applications Studio
Reproducing the Issue
Prerequisites:
- You have an add-on created on Cloud Applications Studio.
- You have an Event script file which attempts to create a new ticket.
Cause
The event script contains a logic which attempts to create a new ticket (which is not saved yet).
The ticket being changed contains 1 or more BTD (BusinessTransactionDocument) References (having a different NodeID key) with exactly the same reference instances (reference to the current Ticket being changed on the UI).
Multiple references for same referenced document is not allowed.
Resolution
Adjust the code logic to check if the current ticket already has a BTD reference and avoid the creation.
Keywords
PDI, SDK, ABSL, custom, solution, script, contains, multiple, references, to , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To