Getting the error onload of EC ' ApprovalDelegationUtil undefined, maybe missing global qualifier'

Divya Patel3
Tera Contributor

Hello All,
Please help me to sort this issue, when I'm loading the EC Homepage with admin role it is working as expected, but when non-admin user is loading the page, they are facing as issue getting as error 'ApprovalDelegationUtil undefined, maybe missing global qualifier' and page behave also getting changed.
I've checked the ApprovalDelegationUtil script include, and other configuration (To-Do configuration), checked the cross scope privileges as well. all are in the place, nothing is manually updated.
Please see attached screenshot where I'm getting an error. 

DivyaPatel3_0-1747984190686.png

 

8 REPLIES 8

@Divya Patel3 

then if no script change then it's strange

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

shantanu_patel8
Mega Guru

Hi @Divya Patel3 

 

The script include "ApprovalDelegationUtil" is it defined in global Application?

 

Check from where ever it is getting called if its initialized like "new global.ApprovalDelegationUtil()"

 

Please mark the answer helpful clicking on 👍 and correct if it helps the issue. Happy scripting 🙂

 

-Shantanu

Hi Shantanu, 
Script include is in 'global' app. also checked from where new global.ApprovalDelegationUtil() called, but all are in place.

@Divya Patel3 

you didn't share what change did you make to the component?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader