How to use errors in the console to find the broken script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2023 01:36 PM
So I have an instance where when I open a record from the Case table and right-click on a field, the menu with "Configure Label," "Config Dictionary," etc. does not show up and instead I get the browser menu. This is the menu I'm talking about:
I opened the web console and realized it's because an unknown script is erroring out, so the page doesn't load properly. Screenshot of real error:
So my question is, how can I use the errors in the console to pinpoint exactly which script is causing this?
I guessed that it might be a UI Policy because I can see something about trying to set some fields to ReadOnly, but I disabled the newest UI Policies from the past 5 days and the error persisted.
I repeated the same with Client Scripts and UI Actions hoping I would find the offending script but no luck.
If I try and click on the errors all I can see is the minimized JavaScript so I can't decipher it or understand what's going on, so I can't pinpoint the script.
Does anyone have previous experience with this sort of thing and advice on how to find the offending script?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 12:37 AM
Hi @jglez1 ,
I have found the below knowledge article for the same errors, please check if it might be helpful.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784188
Please check and Mark Helpful and Correct if it really helps you.
Regards,
Mayur Shardul