Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Network Switch pattern: Wireless controllers- WAP-are not getting discovered when missing the manufacturer field in the device - entPhysicalMfgName. - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Network Switch pattern: Wireless controllers- WAP-are not getting discovered when missing the manufacturer field in the device - entPhysicalMfgName.
KB0861157

Network Switch pattern: Wireless controllers- WAP-are not getting discovered when missing the manufacturer field in the device - entPhysicalMfgName.


1596 Views Last updated : Oct 13, 2022 public Copy Permalink
KB Summary by Now Assist

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 "PatternJSUti" instead "global.JSUtil" script includes which is in "Global" scope.



Steps to Reproduce

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

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

  • sa_pattern_prepost_script_ac72c739db47845082113e4b7c9619fe updated.xml
  • sa_pattern_prepost_script_ac72c739db47845082113e4b7c9619fe.xml

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.