Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Undefined "toString" error on Survey presented on ServicePortal

Community Alums
Not applicable

Hi All,

 

When the survey is presented in the page my_surveys page and when click on any Survey, we get a error as shown in screen shot below... and this is repeated when we fill survey first list of questions and move to next set of questions using Next button. 

Sha5_0-1705490134453.png

 

Error text pasted here : "Exception found: TypeError: Cannot read properties of undefined (reading 'toString')"

 

I tried updating the instance option of widgets on this page, still didnt help.

I get same error when in Instance page editor mode .. just click on instance / or on widget 

Sha5_1-1705490671451.png

There is a routing between take_assessment Page and take_survey page.

 

Please advise, bit lost on where to trouble shoot.

 

 

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@Community Alums This error indicates that your script is trying to run a toString() method on a null object. Please check scripts related to Survey and see if any such conversion is taking place.