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.
Setting a glide_list with a sys_id for a record that cannot be found causes a null pointer and the entire list is blank - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Setting a glide_list with a sys_id for a record that cannot be found causes a null pointer and the entire list is blank
KB0691341

Setting a glide_list with a sys_id for a record that cannot be found causes a null pointer and the entire list is blank


935 Views Last updated : Oct 17, 2023 public Copy Permalink
KB Summary by Now Assist

Description

Setting the value of a List field (glide_list) with a record that is filtered via a before query business rule will cause the field to be blank because ElementGlideListAjax returns no display values.

Steps to Reproduce

  1. Create a new onLoad client script on a table that has a List field.

    g_form.setValue("watch_list", "6816f79cc0a8016401c5a33be04be441,62826bf03710200044e0bfc8bcbe5df1,"); //sys_id for system admin and abel tuter.

  2. Set the sys_user record for abel tuter to active = false.

  3. Impersonate an ITIL user to trigger the user query business rule and filter out the record for abel tuter.

  4. Go to any incident record.

    Expected behavior: The Watch List field should be set with the user System Administrator because the user cannot see the Abel Tuter record).

    Actual behavior: The Watch List field is blank.

 

Workaround

Make sure that the sys_id's that are being used are not deactivated and can be read by the end user.


Related Problem: PRB1242066

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.