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.

Please debug my code

Abdul
Tera Contributor

Hi

 

I wrote the attached code.

The logic is that we have a dropdown in a catalog item with the roles that needs to be added.

And we have check boxes identifying in which environment the role should be provided.

When i select the Role as Admin and select any environment, i am facing the below error.

 

Username: ajdoerksen, Group: [] ERROR MESSAGE: Cannot find an object with identity: '[]' under: 'DC=parkland,DC=domain'.', ERROR: Username: ajdoerksen, Group: [] ERROR MESSAGE: Cannot find an object with identity: '[]' under: 'DC=parkland,DC=domain'.

 

This code works for Production->User and Production->Super User. And UAT-> User and UAT->Super User.

Since the code works for other 2 and just not working for Admin role i am getting confused.

Are there any issues with my logic or code? Please help me.

Abdul_0-1747201769970.pngAbdul_1-1747201817993.pngAbdul_3-1747201836410.png

 

 

5 REPLIES 5

Where are you using this code? this code looks like as workflow code.

If this is workflow code, then that has nothing to do with your onchange error