Service Portal consoleError

kailashthiyagar
Kilo Guru

I m getting this error in the console while trying to access the catalog item in the service portal. This occurs in PRD environment but works fine in stage/TEST/Dev

amb.MessageClient [INFO] >>> connection exists, request satisfied

js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:11973 TypeError: Cannot read property 'description' of undefined

This is the line

$scope.data.sc_cat_item.description = $sce.trustAsHtml($scope.data.sc_cat_item.description);

16 REPLIES 16

Did you also refresh the page after making changes to that widget?



Please mark this response as correct or helpful if it assisted you with your question.

Yes . i did refresh. Even i have logged out and logged in. And in addition, we have the same code in Dev/Test/Stage. Its working everywhere except in PRD


Yeah...Never experienced this.



Can you add an alert to check if description as a value



alert('Description is ---'+$scope.data.sc_cat_item.description)



Please mark this response as correct or helpful if it assisted you with your question.

Did a basic verification as well. its having sc_cat_item table having description field in PRD



Its the complete error message which i see in console



js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:11973 TypeError: Cannot read property 'description' of undefined


      at api.controller (euts-cat-item-soft-intake-form.js:5)


      at Object.invoke (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:8230)


      at $controllerInit (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:10657)


      at nodeLinkFn (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:9945)


      at compositeLinkFn (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:9521)


      at publicLinkFn (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:9444)


      at Object.render (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:69267)


      at load (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:69373)


      at processQueue (js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:13849)


      at js_includes_sp.jsx?v=02-24-2017_1059&lp=Fri_Oct_06_20_23_58_PDT_2017&c=33_354:13864


Is it for one particular catalog item or for every catalog item?



Please mark this response as correct or helpful if it assisted you with your question.