Service Portal - Typeahead search throwing errors with languages other than english - Cannot convert null to an object. Failing widgetIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Issue - Switch the system language to non-english eg: German - Go to Service Portal and search for any keyword in the Typeahead Search Widget eg: https://instancename.service-now.com/sp?id=search&q=mobile Errors: Server JavaScript error Cannot convert null to an object.Line number 94Script source code logged to browser consoleFailing widget: 'Typeahead Search' (fa20ec02cb31020000f8d856634c9ce9) (or) Server JavaScript error Cannot convert null to an object.Line number 69Script source code logged to browser consoleFailing widget: 'Search Page' (b8c57073cb10020000f8d856634c9cfc) Symptoms Check the system logs if there are errors as below: org.mozilla.javascript.EcmaError: Cannot convert null to an object.Caused by error in <refname> at line 4643: while(m2mSearchSourceGR.next()) {44: var searchSourceGR = m2mSearchSourceGR.getElement("sp_search_source").getRefRecord();45: data.resultTemplates["sp-search-source-" + searchSourceGR.getValue("id") + ".html"] = $sp.translateTemplate(searchSourceGR.getValue("search_page_template"));==> 46: getResults(searchSourceGR);47: }48: }49: java.lang.NullPointerExceptionCaused by error in sp_search_source.c96eb1686721220023c82e08f585efff.data_fetch_script at line 16com.glide.catalog.cache.impl.DefaultTranslationProvider.getFieldTranslationsFromSysTranslated(DefaultTranslationProvider.java:231)com.glide.catalog.cache.impl.DefaultTranslationProvider.access$300(DefaultTranslationProvider.java:29)com.glide.catalog.cache.impl.DefaultTranslationProvider$FieldTranslationProvider.getTranslations(DefaultTranslationProvider.java:424)com.glide.catalog.cache.impl.DefaultTranslations.getFieldTranslation(DefaultTranslations.java:80)com.glide.catalog.cache.impl.ServiceCatalogI18NCacheableItemAdapter.resolveFieldValue(ServiceCatalogI18NCacheableItemAdapter.java:79)com.glideapp.servicecatalog.Category.getTitle(Category.java:491)com.glideapp.servicecatalog.Category.get(Category.java:137)com.glideapp.servicecatalog.CatalogItem.getFirstAccessibleCategoryForSearch(CatalogItem.java:633)com.glideapp.servicecatalog.scoped.api.CatalogItemJS.jsFunction_getFirstAccessibleCategoryForSearch(CatalogItemJS.java:316)sun.reflect.GeneratedMethodAccessor1567.invoke(Unknown Source) Enable debugging and check the debug logs: [DefaultTranslationProvider] Loading translations for: table=sc_category, id=d258b953c611227a0146101fb1be7c31, language=en, source=sc_categorySQL04:17:34.776: Time: 0:00:00.000 for: caveriondev_2[glide.17] SELECT ... FROM (sc_category sc_category0 INNER JOIN sys_metadata sys_metadata0 ON sc_category0.`sys_id` = sys_metadata0.`sys_id` ) WHERE sc_category0.`sys_id` = 'd258b953c611227a0146101fb1be7c31' /*...*/ log04:17:34.778: [DefaultTranslationProvider] No db entry for: table=sc_category, id=d258b953c611227a0146101fb1be7c31, language=en, source=sc_categorylog04:17:34.779: Evaluator: java.lang.NullPointerException Caused by error in sp_search_source.c96eb1686721220023c82e08f585efff.data_fetch_script at line 16 com.glide.catalog.cache.impl.DefaultTranslationProvider.getFieldTranslationsFromSysTranslated(DefaultTranslationProvider.java:231) Cause and Solution The issue is caused due to Catalog items pointing to Null Category. Open "sc_cat_item" table and group by on field "Category" If you see any catalog items with category as sys_id instead of a name, open it and check the value of the category. If it is pointing to Null, they are the ones causing the issue. https://instancename.service-now.com/nav_to.do?uri=%2Fsc_cat_item_list.do%3Fsysparm_query%3Dcategory.titleISEMPTY%255Ecategory!%253DNULL%255EGROUPBYcategory%26sysparm_first_row%3D1%26sysparm_view%3D Check the attached screenshots for reference. To resolve the issue, make sure that there are no catalog items pointing to NULL category.