Server JavaScript error Cannot read property "answer" from null

Dave_p
Giga Guru

Hi,

I am in a confusing situation. I have this catalog item. I have deactivated all the catalog client scripts. Still, I am getting this error 'Server JavaScript error Cannot read property "answer" from null'. Kindly help.

 

I have highlighted in one of the screenshots. This happens only when I click on this (yellow high lighted). At the form submission level its all good.

 

5.png4.png3.png2.png

 

6.png

 

Regards

Suman P.

 

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@Dave_p 

did anyone add some customization to that "Standard Ticket" widget?

Did you check that widget line 87?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

Robert H
Mega Sage

Hello @Dave_p ,

 

The error indicates an issue with processing the Tabs of the Standard Ticket Configuration for Requested Items, specifically the advanced script for making them visible. Please set Advanced to "false" for all the tabs where it is currently "true" and check if this makes the error go away. If it does then debug the Visible script.

 

RobertH_0-1748585154016.png

 

Regards,

Robert

 

View solution in original post

4 REPLIES 4

Nilesh Pol
Tera Guru

@Dave_p 

find out and verify return, sysparm parameters, client callable is not missing in the script include. 

You call also verify the client script In the widget client controller it might returning the NULL.

Ankur Bawiskar
Tera Patron
Tera Patron

@Dave_p 

did anyone add some customization to that "Standard Ticket" widget?

Did you check that widget line 87?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Robert H
Mega Sage

Hello @Dave_p ,

 

The error indicates an issue with processing the Tabs of the Standard Ticket Configuration for Requested Items, specifically the advanced script for making them visible. Please set Advanced to "false" for all the tabs where it is currently "true" and check if this makes the error go away. If it does then debug the Visible script.

 

RobertH_0-1748585154016.png

 

Regards,

Robert

 

jsanjuan
ServiceNow Employee
ServiceNow Employee

@Dave_p ,

Please check the syslog table for any other logs related to the time when the issue is replicated.  You may see some scripts (script includes) that are in an encoded or corrupted test, rather than readable script.  The plugin  of that script will need to be reparied for your particular instance.