cannot read property startswith of defined

salu
Mega Guru

Hello,

Can some one help me with this error.I am getting this exception message.Can some one help me on this.

Thanks

Saranya

1 ACCEPTED SOLUTION

arya6
ServiceNow Employee
ServiceNow Employee

Hi Saranya,



I am pretty sure you meant: "cannot read property startswith of undefined".



You have some script that is attempting to invoke the startswith() function on a variable that has not been defined. Where do you see this message? It could be a client script or server-sided script that is causing the error.



If you only see it on a particular catalog item for example, you could easily search the script field of the scripts that run on that item for "startswith" to locate the offending script.



Hope that helps,


Arya


View solution in original post

2 REPLIES 2

arya6
ServiceNow Employee
ServiceNow Employee

Hi Saranya,



I am pretty sure you meant: "cannot read property startswith of undefined".



You have some script that is attempting to invoke the startswith() function on a variable that has not been defined. Where do you see this message? It could be a client script or server-sided script that is causing the error.



If you only see it on a particular catalog item for example, you could easily search the script field of the scripts that run on that item for "startswith" to locate the offending script.



Hope that helps,


Arya


Thanks Arya



thanks


Saranya