Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Showing error in run script to update "user is already in an AD group" in workflow

spandana kalla
Tera Contributor

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.

12 REPLIES 12

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.

@Community Alums @Amit Gujarathi @Ankur Bawiskar @Anil Lande  can anyone please help.

 

Thanks,

Spandana.

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 .

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande