Service Portal consoleError
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 11:02 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2018 01:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2018 12:04 PM
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...