SyntaxError: Unexpected token: u (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 1

Surendra6
Tera Contributor

while we are updating work-notes from remedy to snow, we are receiving below response.

 

SyntaxError: Unexpected token: u (sys_script_include.d2426c9ec0a8016501958bf2ac79c775.script; line 155)"},"status":"failure"}]

 

in the scripted rest api patch method we added the below code about the work notes to copy.

 

Surendra6_0-1677155813839.png

Please help to fix this issue and update the work notes properly.

 

Thank you!!

6 REPLIES 6

Vasantharajan N
Giga Sage
Giga Sage

@Surendra6 - Please check the Script Include with sys_id d2426c9ec0a8016501958bf2ac79c775, line no 155 and check any string "u" and fix it. 

 

Please change the instance to your instance and access the link to go the causing script include. 

https://instance.service-now.com/sys_script_include.do?sys_id=d2426c9ec0a8016501958bf2ac79c775

 

if not please share the screenshot of the script include


Thanks & Regards,
Vasanth

Surendra6
Tera Contributor

@Vasantharajan N , there is no string relate to "u" in the line 155.

 

Surendra6_0-1677157819911.png

 

@Surendra6 - Please log the js_response and check whether that is in JSON format


Thanks & Regards,
Vasanth

Hi @Vasantharajan N ,

 

Could you please share the code of log which we can add the js_response. I am new to snow and not aware of integration.

 

Thanks!!