113 views

Description

Wireless controllers are not getting discovered when missing the manufacturer field in the device -  entPhysicalMfgName.
Pattern Pre/Post Scripts in "Discovery and Service Mapping Patterns" WAPs  scoped app which is referencing "script include" accessible only in "Global".
As a result, the corresponding pattern using this script will fail during Discovery.
Example: Network Switch pattern failed with the error message: "Running pre sensor script- WAPs - Pre failed due to: TypeError: Cannot convert null to an object."
This is caused by Pre/Post Pattern Scripts "WAPs - Pre" which is in "Discovery and Service Mapping" scope is referencing to  "PatternJSUti" instead "global.JSUtil" script includes whichis in "Global" scope.


Steps to Reproduce

  1. Install Discovery and Service Mapping patterns version 1.0.63.
  2. Run Discovery on Wireless controler
  3. Observe that the Network Switch pattern failed with the error message: "Running pre sensor script- WAPs - Pre failed due to: TypeError: Cannot convert null to an object."

Workaround

Import WAPs - Pre pattern script attached 


Related Problem: PRB1436783

Seen In

SR - ITOM - Discovery and Service Mapping - v1.0.35

Intended Fix Version

SR - ITOM - Discovery and Service Mapping - 202012

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-11-27 06:29:08
Published:2020-11-19
sa_pattern_prepost_script_ac72c739db47845082113e4b7c9619fe.xml[View]