UI policy script error: TypeError: Cannot read properties of undefined (reading 'execute') error on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 09:14 AM
Hi Team,
When the UAT instance was upgraded from Quebec to Rome, when i opened a catalog item(name- xyz) form on service portal, I got this error- There is a JavaScript error in your browser console.
I inspected and checked the console. It showed the error- UI policy script error: TypeError: Cannot read properties of undefined (reading 'execute').
There are several catalog ui policies and catalog client script written on this catalog item.
It is working on PROD without any errors.(PROD is not upgraded yet).
Could someone help me to resolve this issue?
Thanks in advance.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 09:23 AM
Hi,
So did you debug that catalog UI policy?
did you deactivate that and verify error was gone?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 10:17 PM
yes, when I deactivated the UI policy, the error was gone. But that ui policy is needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 10:26 PM
what's there in that UI policy.
Did you debug it?
can you share screenshot of that?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2022 10:36 PM
On a cat item, there is one multiple choice type variable- say A with choices-yes and no, and two single line text type variables- say B and C.
So in that UI policy, when A is no, then B and C must be visible and mandatory.