<script custom-tag="" type="application/ld+json">{"@context":"https://schema.org","@type":"TechArticle","headline":"User without \"sn_grc.business_user\" role tries to save project, the following error occurs: Submit cancelled due to a script error - please contact your System Administrator","image":"http://support.servicenow.com/29f1d2661baf6010cafa53d8624bcb43.iix","author":{"name":"ServiceNow Support","url":"http://support.servicenow.com/now"},"keywords":"ServiceNow, NowSupport public Knowledge Base articles, Support and Troubleshooting,KB1002713,","wordcount":"210","publisher":"ServiceNow","url":"https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1002713","datePublished":"2022-01-19","dateCreated":"2022-01-18","dateModified":"2023-03-01","description":"<h2>User without \"sn_grc.business_user\" role tries to save project, the following error occurs: Submit cancelled due to a script error - please contact your System Administrator</h2><br/><div style=\"o","articleBody":"<h2>User without \"sn_grc.business_user\" role tries to save project, the following error occurs: Submit cancelled due to a script error - please contact your System Administrator</h2><br/><div style=\"overflow-x:auto\"><article><div ><h3 >Issue </h3><section><p>When any user that has the "it_project_manager" role but not the "sn_grc.business_user" role tries to save project, the following error occurs: Submit canceled due to a script error - please contact your System Administrator</p></section></div><div ><h3 >Release</h3><section><p>Rome</p></section></div><div ><h3 >Resolution</h3><section><p>Make code changes in the two UI macros: inherent_heatmap and residual_heatmap. Replace the XML field with below given code blocks. <br /><br />Macro: inherent_heatmap <br />Code block:</p>\r\n<p><?xml version="1.0" encoding="utf-8" ?><br /><j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"><br /> <g:requires name="scripts/angular_includes_1.4.js" /><br /> <g:requires name="sn_risk_advanced.AdvRiskInherentHeatmap.jsdbx" /><br /> <g:evaluate var="jvar_hasCorrectRole"><br /> var hasRole = false<br /> if (gs.hasRole("sn_grc.business_user")){<br /> hasRole = true;<br /> }<br /> hasRole<br /> </g:evaluate><br /> <j:if test="${JS:jvar_hasCorrectRole}"><br /> <div id="inherent_assessment" sn-ng-formatter="adv_risk_inherent_heatmap"><br /> <div ng-controller="inherentHeatmapController"> <br /> <inherent_heatmap></inherent_heatmap><br /> </div><br /> </div><br /> </j:if><br /> </j:jelly></p>\r\n<div id=\"inherent_assessment\">\r\n<div> </div>\r\n</div>\r\n<p><br /><br />Macro: residual_heatmap <br />Code block: <br /><?xml version="1.0" encoding="utf-8" ?><br /><j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"><br /> <g:requires name="scripts/angular_includes_1.4.js" /><br /> <g:requires name="sn_risk_advanced.AdvRiskResidualHeatmap.jsdbx" /><br /> <g:evaluate var="jvar_hasCorrectRole"><br /> var hasRole = false<br /> if (gs.hasRole("sn_grc.business_user")){<br /> hasRole = true;<br /> }<br /> hasRole<br /> </g:evaluate><br /> <j:if test="${JS:jvar_hasCorrectRole}"><br /> <div id="residual_assessment" sn-ng-formatter="adv_risk_residual_heatmap"><br /> <div ng-controller="residualHeatmapController"> <br /> <residual_heatmap></residual_heatmap><br /> </div><br /> </div><br /> </j:if><br /></j:jelly></p>\r\n<div id=\"residual_assessment\"><br />\r\n<div><br /><br /></div>\r\n</div>\r\n<p> </p></section></div></article></div>"}</script>