Getting JavaScript Error: Unhandled exception in GlideAjax on Service Portal while opening the Incident Form for end users only(who has no role assigned). Admin and ITIL users are not getting errors while opening submitted incident on Portal.

Ankit Kumar7
Tera Contributor
1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello,

Can you please check any on load client scripts on incident form  where they might have used glide ajax and let me know ?

Usually this happens  when there is a problem in glide ajax while calling any script include 

in your case as you are getting error while opening the form it must be a on load client script 

Please debug by deactivating such client scripts and then check if the error is coming up in portal. If the error is not there after deactivating the client script then we can debug which client script it is .

please accept the solution or mark helpful it it answers your question

View solution in original post

10 REPLIES 10

I found some code within client script which causing this error. 

 

Thank You!

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

image is missing

Please debug each of the client scripts

regards
Ankur

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

Hi Ankur,

Image was related to error . I am sorry it's not uploaded successfully. 

Error:Unhandled exception in GlideAjax

I went through the Client Script I did not find any error related to it and debug by deactivating one by one.

try to use getXMLAnswer()

Client Side Scripting: Go for GlideAjax (with getXMLAnswer)!

Regards
Ankur

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

@Ankit Kumar 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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