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.
Pattern pre-sensor script "Update manufacturer and model details for Next Generation Firewall" is in wrong Application and Domain - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Pattern pre-sensor script "Update manufacturer and model details for Next Generation Firewall" is in wrong Application and Domain
KB0832142

Pattern pre-sensor script "Update manufacturer and model details for Next Generation Firewall" is in wrong Application and Domain


711 Views Last updated : Apr 8, 2024 public Copy Permalink
KB Summary by Now Assist

Description

Symptom:
Error in Discovery Pattern log "Running pre sensor script- Update manufacturer and model details for Next Generation Firewall failed due to: TypeError: Cannot convert null to an object.."

Affected instance(s):
OOTB Instance with plugin "Discovery and Service Mapping Patterns" 1.0.65


The pre-sensor script "Update manufacturer and model details for Next Generation Firewall" is in wrong Application and Domain with version 1.0.65

The OOTB pre-sensor script is put in non-existing domain and in wrong Application "Discovery and Service Mapping Patterns"


With Domain and Application changed to "Global" Discovery can work as expected without errors. Attached the modified pre-sensor script xml.

Steps to Reproduce

Update plugin "Discovery and Service Mapping Patterns" to version 1.0.65

Run Palo Alto Discovery with pattern

Workaround

> Regarding Application Scope of the pre post sensor:

The pre-sensor is using Script Include named MakeAndModelJS, which is in global and is accessible only from it's own scope.

This is the reason for failure of pre-sensor execution as it resides in different scope.

In latest releases MakeAndModelJS is changed to "Accessible from all application scope". This change is present Orlando and is going to be pushed in NP-10. 

After this change from NP-10, the change of application scope is not required, as this script is part of store family. Hence as part of this PRB, only Domain will be corrected.

> Regarding Domain of the pre post sensor:

This should be set to global. This issue is fixed in this PRB



Related Problem: PRB1412934

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?

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.