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.
If the System choice is selected when a user changes the preferred language field on their profile, the session language does not refresh - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • If the System choice is selected when a user changes the preferred language field on their profile, the session language does not refresh
KB0584789

If the System choice is selected when a user changes the preferred language field on their profile, the session language does not refresh


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

Description

When a user changes the "preferred_language" field on their profile, the session language is normally updated to the new value so subsequent loaded pages display in the new language. However, if the "System" choice is selected, the session language does not refresh.

For example, you have English and Japanese languages installed on your system and the instance default language is English. If a user changes the 'preferred_language' field in their profile from "System [English]" to "Japanese," all subsequent pages are shown in Japanese. However, if they change the field back to "System [English]," all subsequent pages continue to be shown in Japanese until they log off and log back on. Note that this issue does not occur if you actually choose the "English" language. It only happens if you choose "System [English]".

The 'Change Own Profile' business rule on the 'User [sys_user]' table detects if a user is changing their own profile and if certain fields are changed. One of the fields included in this check is the "preferred_language" field. This business rule is not operating as intended when the "System" option is selected.

Steps to Reproduce

 

  1. Navigate to System Definition > Plugins.
  2. Activate the com.glide.i18n and com.snc.i18n.japanese plugins
  3. Click the user menu and select Impersonate User.
  4. Search for and select the ITIL User account.
  5. Click the user menu and select Profile.
  6. In Language, select Japanese.
    You may need to add the Language field to the form.
  7. Right-click on the form header and select Save.
    Note that when the page reloads, the entire form is displayed in Japanese.
  8. In Language, select System (英語).
    Note that 英語 = English.
  9. Right-click on the form header and select Save.
    Note that the page reloads and is still displayed in Japanese. Because you selected System and the system language is English, the page should reload and be displayed in English. Changing your profile's Language field should update the session language.

Workaround

This is by design, when the "System" choice is selected, the preferred_language field gets emptied, affecting the 'Change Own Profile' Business Rule.

There are two workarounds available for this issue:

  • Log out of the instance and then log in again. Your new session obtains the correct language based on your new selection.
  • In the 'Change Own Profile' business rule on the User [sys_user] table, modify line 19 from:

    gs.getSession().setLanguage(current.preferred_language);

    to:

    gs.getSession().setLanguage((current.preferred_language == '' ? gs.getProperty('glide.sys.language') : current.preferred_language));

Related Problem: PRB675884

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.