Notifications

391 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

SR - IRM - Audit Management - New York 2019 Q3
SR - IRM - Audit Management PA Content - Madrid 2019 Q1
SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - PA Premium Integration - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Policy and Compliance PA Content - Madrid 2019 Q1
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - SIG Assessment Legacy - Madrid 2019 Q1
SR - IRM - SIG Questionnaire - New York 2019 Q3
SR - IRM - Vendor Risk Management - Madrid 2019 Q1
SR - ITOM - CMDB CI Class Models - 201908
SR - ITOM - CMDB CI Class Models - 201909
SR - ITOM - Discovery and Service Mapping - 201908

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-08-20 12:43:58
Published:2020-06-08