Issue
Variables are not visible in Service Portal for some catalog items.
Upon opening the affected catalog item in service portal the console will give the below error.
RangeError: Maximum call stack size exceeded
at useDisplayValueForValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54777)
at Object.hasValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54757)
at Object.get (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:64403)
at Object.hasValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54757)
at Object.get (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:64403)
at Object.hasValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54757)
at Object.get (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:64403)
at Object.hasValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54757)
at Object.get (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:64403)
at Object.hasValue (js_includes_sp.jsx?v=02-14-2019_1004&lp=Tue_Feb_05_08_46_43_PST_2019&c=6_56:54757)
Release
All versions and releases affected.
Cause
Issue occurs when variable names are the same as the variable set names. These should be unique under best practices.
Resolution
Variable name and variable set name should not be the same, this is not the best practice. Make sure variable names and variable set names are unique in the instance.