Unhandled exception in GlideAjax - onLoad Catalog Client Script in Customer Service Request Integration

Jenny Talor
Tera Expert

Hi All

I know there are multiple posts on this subject (which I have read!) but I cannot find a solution to my issue.

I have a catalog item in the Customer Service Request Integration scope.  In this item I have the following onLoad catalog client script - 

find_real_file.png

and this is the Script Include - 

find_real_file.png

When I load the catalog item on the CSM Portal, I am getting the error message "There is a JavaScript error in your browser console" and the variables company_type and licence_allocation are not being populated.  When I checked on the console, it just states "Unhandled exception in GlideAjax.".

As part of my investigations, I added an alert to the onLoad client script to ensure the Account field value is being returned, and it is. 

Can anyone please assist in resolving this issue?

 Many thanks

Jenny

1 ACCEPTED SOLUTION

Hi Pranesh

Well I finally figured out what the issue was! As we are using CSM, our Portal users (contacts) have snc_external roles.  After turning on security debugging, I found there was a 'client-callable script include' ACL which was set to snc_internal only.  So I updated the acl to include the external role, and all is now working as it should.  Phew!!

Thanks very much for your suggestions, it is really appreciated.

Regards

Jenny

 

View solution in original post

9 REPLIES 9

Pranesh072
Mega Sage
Mega Sage

can you try.

 

displayValues.push(gr.getDisplayValue(fields[i]));

 

Also try to open the catalog on native view and check console for errors. 

 

Hi Pranesh

Thanks for the response.

I tried your suggestion and it did not resolve the issue.

When I open the item in native, the console is showing the following error :-

find_real_file.png

Thanks

Jenny

 

 

can you alert the answer in client script, according to the error answer is coming null.

Hi Pranesh

I added an alert and yes this answer is coming back as null.  But I don't understand why? Is it because my item, script include and client script are in the Customer Service Request Integration scope, but the customer_account table is in Global?

Thanks

Jenny