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.
Catalog client scripts are not executing in UI11 and throwing "$j is not defined" error - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Catalog client scripts are not executing in UI11 and throwing "$j is not defined" error
KB0689052

Catalog client scripts are not executing in UI11 and throwing "$j is not defined" error


717 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms


  1. On UI11 service catalog form, the catalog client scripts doesn't get executed.
  2. While loading the service catalog form, looking at the browser console log reveals below errors,
    Uncaught ReferenceError: $j is not defined 

    at klass.getMetricStats [as callbackFunction] (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1309) 

    at klass._responseReceived (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19887) 

    at klass._processReqChange (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19745) 

    getMetricStats @ com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1309 

    _responseReceived @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19887 

    _processReqChange @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19745 

    XMLHttpRequest.send (async) 

    _sendRequest @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19734 

    _makeRequest @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19706 

    (anonymous) @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19682 

    setTimeout (async) 

    _getXML0 @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19682 

    getXML @ js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:19671 

    (anonymous) @ com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1298 

     

    Uncaught ReferenceError: $j is not defined 

    at Object.send (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:36339) 

    at klass._clientTransaction (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:36577) 

    at klass.fireEvent (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7797) 

    at klass.fire (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7822) 

    at firePageTimer (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1550) 

    at setTimeGraph (com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1523) 

    at com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_stack=home.do:1515 

    at runAfterPageLoadedEvents (js_includes.jsx?v=04-19-2018_1049&lp=Wed_Jun_06_17_44_58_PDT_2018&c=6_61:7152)

Release


Istanbul, Jakarta, Kingston 

Cause


With Istanbul release onwards, UI11 is not working as expected since it is deprecated as per document, hence system throws "$j is not defined error" on console and catalog client scripts are not executed.

Resolution


Activate UI16 plugin and set the property "glide.ui.doctype" to "true", so that instance will be pushed to use the latest User Interface and libraries. 

Additional Information


Legacy - UI11

UI16


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.