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

bharat2012@gmail.com



We have created HI ticket and continuing to do analysis from our end as well but nothing has been found out so far. will post update if i got anything


bharat2012@gmail.com   sanjivmeher



This line of code data.sc_cat_item = $sp.getCatalogItem(data.sys_id,true); has the problem.



The correct code should be



data.sc_cat_item = $sp.getCatalogItem(data.sys_id);




And here's why:   patch version. our PRD env is in patch 3, Stage is patch 3 hotfix a.  



Release notes here: https://docs.servicenow.com/bundle/istanbul-release-notes/page/release-notes/servicenow-platform/ser...