Pre-sensor script "OSs - Pre Sensor" failed due to: TypeError: Cannot convert null to an object.

Doraemon
Tera Contributor

Windows discovery fails with error: 

Pre-sensor script "OSs - Pre Sensor" failed due to: TypeError: Cannot convert null to an object.

It is failing at step pre payload processing scripts. What could be the cause? 

Log message:
"message" : Pre-sensor script \"OSs - Pre Sensor\" failed due to: TypeError: Cannot convert null to an object. "

1 REPLY 1

Rahul Priyadars
Giga Sage
Giga Sage

Hi Doraemon

 

This is the script -

https://<YOUR INSTANCE>.service-now.com/now/nav/ui/classic/params/target/sa_pattern_prepost_script.do%3Fsys_id%3D59e84c5b9f2322001d753758442e70f3%26sysparm_record_rows%3D25%26sysparm_record_scope%3Dglobal%26sysparm_record_target%3Dsa_pattern_prepost_script%26sysparm_record_list%3Dexecution_type%253D1%255EnameCONTAINSOS%255EORDERBYorder%26sysparm_nostack%3Dtrue%26sysparm_record_row%3D8

 

Can you post more logs/Payload data ..which attribute in Payload Its referring too.

also do some detailing using below BLOG

https://www.servicenow.com/community/itom-blog/using-pre-post-processing-scripts-to-handle-reference...

 

Regards

RP