Showing error in run script to update "user is already in an AD group" in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2023 07:59 AM
Hi Community,
There is already a run script activity in workflow to update "user is already in AD group" in work notes. While testing it's showing error in the activity of workflow. Can anyone please help me with this. Please refer the below snips.
Thanks,
Spandana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2023 09:29 AM
Hi @Ankur Bawiskar ,
After adding logs, we are getting this error:
Updating error message on RITM/Task(8efdc7d297df7514b9479534a253af49): org.mozilla.javascript.WrappedException: Wrapped org.mozilla.javascript.JavaScriptException: java.lang.RuntimeException: Invalid databus lookupId 15 Unable to find activty for databus lookup ID 15 (<refname>; line 17)
Please help!
Thanks,
Spandana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2023 12:55 AM
@Community Alums @Amit Gujarathi @Ankur Bawiskar @Anil Lande can anyone please help.
Thanks,
Spandana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2023 01:49 AM
Hi,
In your script on line no 1 you have used data.get(14).
your variable "data" is not defined it has no value. You are trying to fetch values from it and that lookup is invalid.
As we don't have any idea what your workflow is doing and from where you can get error details.
Check if any previous activity is storing error codes in any workflow scratchpad variables. You may initialize data variable from related workflow scratchpad variable and get the error codes .
Thanks
Anil Lande
