How to resolve record producer getting stuck at "Submitting..." in Service PortalIssue <!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> How to resolve Record Producer/Catalog Item getting stuck at "Submitting..." in Service Portal Description When trying to submit a Record Producer and the "sc_cat_item" page is stuck at submitting and there is an error "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" on the browser console. This might be due to an exception on the nodelogs, Please see the below example "... java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String Caused by error in sys_ws_operation.4b9f0a8967101200d22b794717415a30.operation_script at line 1 com.glideapp.servicecatalog.scoped.api.CatalogItemJS.jsFunction_submitProducer(CatalogItemJS.java:396) ..." Procedure This error occurs because there is a type mismatch when setting a variable. To troubleshoot this follow the steps below, Find the affected variable associated to the Catalog Item / Record producerLook for client script setting this variable, You could do that by search this by applying the following filter on "catalog_script_client" tableFilter: "Script" "Contains" "<Variable Name>"Make sure the variable type and the value matches, for example For a have a variable mapped to a string type dictionary entry and there is a client script setting g_form.setValue("variable_name",1); This exception would occur, Please set the value to a string by replacing with the following code, g_form.setValue("variable_name","1"); Applicable Versions ALL Additional Information Similar kind of error can occur when you are setting an object directly to a string field, For example, Variable: A Type: Multi Line Text Client Script: var arr = []; // creating an array object g_form.setValue("A", arr); To resolve this you would need to convert the Array object to a string using "toString()" method, Please see the below example var arr = []; g_form.setValue("A", arr.toString());