Discovery Error - JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Set destination network & convert network data for future calculations' at line 7

sud1106
Tera Contributor

While discoverying Network devices, Getting the following error form network pattern.

JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Set destination network & convert network data for future calculations' at line 7

Please assist
9 REPLIES 9

Please refer to KB article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0861231


Thanks & Regards,
Vasanth

PaulSco
Tera Guru

Same issue here...wondering if anyone has seen and resolved this item yet?  Currently on Paris Patch 2.

Good afternoon @PaulSco ! Apparently not. I had to zboot the Orlando Patch 4 instance and only enable Discovery plugins; it worked. I upgraded to Paris Patch 2, then to Quebec Patch 1, and still works fine. I'm pretty sure there was something messing this up with an specific patch/upgrade.

 

Please refer to KB article 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0861231


Thanks & Regards,
Vasanth

Bhavani Shankar
Tera Guru
My Error Statement -- Test failed: Failed to set attribute while testing the step due to the following error: JAVASCRIPT_CODE_FAILURE: TypeError: Cannot convert null to an object. (ad_hoc:EvalClosure-Extract interface mac - for kernel 3 and above-1158024501; line 1)

-- FIX FOR THIS --

Inside EVAL(), put string interpolations within double quotes (Like this :- "${interface_name_kernel3}")
Regards,
Bhavani Shankar
Linked In