How to use errors in the console to find the broken script?

jglez1
Mega Guru

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:

jglez1_0-1698265661264.png

 

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:

jglez1_1-1698265821311.png

 

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!

1 REPLY 1

Mayur2109
Kilo Sage
Kilo Sage

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