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.
Switching to a different language makes the widgets in Service Portal fail with a null pointer exception. - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Switching to a different language makes the widgets in Service Portal fail with a null pointer exception.
KB0720574

Switching to a different language makes the widgets in Service Portal fail with a null pointer exception.


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

Issue

Symptoms


Switching to a different language makes the Service Portal widgets fail. There are javascript errors and a Nullpointer Exception seen on the screen and the console log contains the script for the widget that fails.

The following error is seen:

2018-12-10 07:52:47 (559) Default-thread-6 CA19F569DB12EB00C0B77B47F49619C6 txid=a79cb9a9db52 [DefaultTranslationProvider] Loading translations for: table=sc_category, hierarchy=[sc_category, sys_metadata, sc_category_top_n], id=a0b960a90f463a40a919f68ce1050ee1, language=fr, source=sys_translated_text
2018-12-10 07:52:47 (560) Default-thread-6 CA19F569DB12EB00C0B77B47F49619C6 txid=a79cb9a9db52 WARNING *** WARNING *** Evaluator: java.lang.NullPointerException
Caused by error in <refname> at line 160
com.glide.catalog.cache.impl.DefaultTranslationProvider.getFieldTranslationsFromSysTranslatedText(DefaultTranslationProvider.java:310)
com.glide.catalog.cache.impl.DefaultTranslationProvider.access$400(DefaultTranslationProvider.java:29)

Release


All current supported versions. 


Cause


This is seen because of bad data in the sys_translated_text table. There can be records with empty Field name and Value columns linked to a document key which also might have the valid translations present as well. When looking for translations, the system can encounter these empty records and throw null pointer exceptions and cause the widget load failure.

Resolution


The simplest way to fix this issue would be to remove the bad data. Deleting these empty records fixes the problem.


These empty records can be found by looking at the node logs and finding the errors thrown when the issue happens. The errors contain the sys id of the document for which the translation caused the null pointer exception. This sys id can be looked for in the document column on the sys_translated_text table to find the empty/bad data.



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.