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.
Service Portal widget throws error "Cannot find function split in object ." - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Service Portal widget throws error "Cannot find function split in object ."
KB0718575

Service Portal widget throws error "Cannot find function split in object ."


8043 Views Last updated : Jul 22, 2025 public Copy Permalink English (Original)
  • English (Original)
  • Japanese
KB Summary by Now Assist

Issue

If customer is using "split()" method on a glidelist object in any of their widgets, the widget will throw below error:

2018-11-15 14:29:08 (724) Default-thread-7 C9D66EA5DB796300A73D561BDC961929 txid=fd972ae5db79 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function split in object.

The error on the browser will be:

Server Javascript error Cannot find function split in object.

Release

All releases

Cause

The problem is that the split method is not available on list objects. 

If you look at mozilla's documentation, the split method is a method that exist on string objects. 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split 

Resolution

To fix the issue, use 'toString()' in order to allow the glidelist object to access the split() method.

For example, if you are using the method directly like:

data.test_array = data.fields.split(','); 

Change it to:

data.test_array = data.fields.toString().split(',');

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.