Notifications

1 views

Description

When the user selects Swedish or Norwegian language from the language picker in the "Take survey" widget of "Public Survey" service portal page, getting message "Invalid URL" with the error message "Language doesn't exist."

Cause

  • Out of the box provided "Take Survey" widget "is calling the following "AssessmentUtils" script include,
setSessionLanguage: function(languageId) {
// Check if this language is valid or not
// English must be valid by default
if (languageId != 'en') {
var sysLangs = new GlideRecord("sys_language");
sysLangs.addActiveQuery();
sysLangs.addQuery("id", languageId);
sysLangs.query();
if (!sysLangs.hasNext())
return false;
}
  • When the user selected the language Svenska on the picker, the system gets the selected language code as "se" and with that, it looks for the entry in sys_language table but it doesn't get any record.
  • Thus it throws the message language doesn't exist for Swedish and Norwegian.

Resolution

  • Please review and create entries in sys_language table for Swedish and Norwegian languages.

Article Information

Last Updated:2019-09-30 07:46:04
Published:2019-09-30