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.
TypeError: _.uniqBy is not a function - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • TypeError: _.uniqBy is not a function
KB0852963

TypeError: _.uniqBy is not a function


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

Issue

Console error when opening service portal catalog items:

TypeError: _.uniqBy is not a function
at js_includes_sp.jsx?v=06-05-2020_2026&lp=Fri_Jul_31_06_45_54_PDT_2020&c=34_921:44792
at fn (eval at compile (js_includes_sp_libs.jsx?v=06-05-2020_2026&lp=Fri_Jul_31_06_45_54_PDT_2020&c=34_921:13097), <anonymous>:4:219)
at regularInterceptedExpression (js_includes_sp_libs.jsx?v=06-05-2020_2026&lp=Fri_Jul_31_06_45_54_PDT_2020&c=34_921:14141)
at Scope.$digest (js_includes_sp_libs.jsx?v=06-05-2020_2026&lp=Fri_Jul_31_06_45_54_PDT_2020&c=34_921:14715)

Release

All

Cause

This error is caused when there are conflicting versions of underscore.js / lodash

Resolution

Note that ServiceNow recommend to avoid creating ui scripts for common third party libraries such as underscore / jquery / lodash. Chances are that these are already being included as part of the platform.

Search UI Scripts with name contains underscore or lodash or jquery. Deactivate custom created ones and see if the issue gets resolved.

You may also see a warning before the error which gives the name of the UI Script causing the issue like below

js_includes_sp.jsx?v=06-05-2020_2026&lp=Fri_Jul_31_06_45_54_PDT_2020&c=34_921:31531 UI Script does not return an object or function: xxxxxxx


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.