Notifications

36 views

Description

There are several Pattern Pre/Post Scripts in "Discovery and Service Mapping Patterns" scoped app which are 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 "MakeAndModelJS" and "JSUtil" script includes which are in "Global" scope.

Steps to Reproduce

  1. Install Discovery and Service Mapping patterns version 1.0.63.
  2. Run Discovery on Wireless Access Point devices.
  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

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available..

If you can not wait to upgrade to the release version containing the fix, you can use the following steps to solve the issue (based on WAPs - Pre example):

  1. Change the "Accessible from" flag on JSUtil and MakeAndModelJS from "This application scope only" to "All application scopes".
  2. Modify the Pattern Pre/Post Scripts "WAPs - Pre" by adding "global." in front of the occurrences of "JSUtil" and "MakeAndModelJS".

Related Problem: PRB1409305

Seen In

There is no data to report.

Intended Fix Version

SR - ITOM - Discovery and Service Mapping - 202008

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-07-02 07:27:14
Published:2020-06-08