Error while loading the legal portal. " ErrorServer JavaScript error undefined is not a function."

NagaNandini N
Tera Guru

While loading the legal portal I received the below error messages

Error Server JavaScript error undefined is not a function.
Line number 11 (sys_script_include.94d06ee7db3b04509dd29207db961953.script)

Error Failing widget: 'Relevant for you' (6cc836d0dbf700500c209493db961914)

 

Can someone help me how to fix it please

 

I checked the script include with the sys_id : 94d06ee7db3b04509dd29207db961953 and the line 11 but dont know the error

 

 

var UserRecommendationUtilSNC = Class.create();
UserRecommendationUtilSNC.prototype = {
    initialize: function(instanceId) {
        this.stats = {};
        this.stats.callerId = instanceId;
        this.stats.callerTable = instanceId ? 'sp_instance' : '';
        this.stats.parentId = instanceId;
        this.stats.textPrefix = 'UserRecommendationUtil';
        this.stats.userId = gs.getUserID();
        this.stats.startTime = new GlideDateTime();
        this.performanceIndicatorUtil = new sn_ex_sp.PerformanceIndicatorUtil();
    },

    getKbGrFromSysId: function(articleId) {
        var gr = new GlideRecord("kb_knowledge");
        gr.get(articleId);
        return gr;
    },
1 REPLY 1

Anupam Gupta
Tera Contributor

Hi

We are facing the same issue. Please help if you were able to fix this issue.

Thanks

Anupam