[Service Portal]: Injection argument not found (newValue) errorIssue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Overview When loading or submitting catalog items on Service Portal, there can be situations where you may end up encountering the following client-side error message: (g_env) [SCRIPT:EXEC] Error while running Client Script "<script>": Injection argument not found (newValue) Most Probable Cause The most probable cause is trying to make an Ajax call from client-side scripting using a variable as a parameter that "hasn't been populated yet" (hence explaining the above error that newValue is not found - because the new value is not provided to the variable before the Ajax call) In other words: Let's say you have variable X (empty initially)You made a Ajax call by using the above variable's value (empty still) Example A perfect example would be our GlideForm's getReference() API which has the following syntax: g_form.getReference(fieldName, Function callback); So let's say I have the following scenario: A reference type variable on a catalog item that targets to User table. (Let's say: "user")An on-load client script with the following script: var userName = g_form.getReference('user', function(usr){ alert(usr.name);}); The above script is just trying to get the user's name from the respective user record table. Now when you load this catalog item on portal, you will get the above mentioned error (once the page load completes). Why? As explained before: the above script will run and try to get reference of the user record which "has not been populated" with a value yet on the "User" variable. Additional Information getReference API reference: https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_GlideFormGetReference_String_Function