Not able to submit catalog item in service portal getting "Something went wrong.."

Diksha R
Tera Expert

Hi All,

 

I am not able to submit an catalog request from service portal view, getting the attached error and it is preventing from submission. I am able to submit the same in platform view. 

 

Any help would be appreciated! 

10 REPLIES 10

Sandeep Rajput
Tera Patron
Tera Patron

@Diksha R Please check if your catalog item has an onSubmit client script which is crashing due to some reason. You can also check the browser console log to check why the script is crashing.

 

If this works fine on the platform view then it gives a hint that you might be either using getXMLWait in your catalog client script during an Ajax call which is not supported on the Service Portal.

 

Hope this helps.

SK Chand Basha
Giga Sage

Hi @Diksha R 

This issue occurred due to execution plan value not getting properly. 

 

I'm attaching a KB below it might be helpful

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0994307

 

Mark it Helpful and Accept Solution!! If this helps you to understand. 

Ramz
Mega Sage

Hi @Diksha R ,

-Check if any of your variables you are using is causing this issue.

-Check onSubmit client script configured

 

Please mark my answer correct/helpful if it resolved your query 

 

Community Alums
Not applicable

Hi @Diksha R .

You can check the logs on both servicenow and web browser there is may be some issue you are getting while submiting. There are some errors which occurs while submiting the form.

 

Here are some types of errors that can occur while submitting a form in ServiceNow:
  • Form loading issues
    The form may appear to be loaded, but the context menu is not visible when right-clicked. This is usually caused by a client-side error, such as a client script or UI script. To troubleshoot, open the Browser Developer tool and load the form to see an error in the console.
  • Broken form issues
    Sections and fields may be missing from the form. To troubleshoot, understand the form structure and tables to identify the issues.
  • Javascript errors
    Some symptoms include:
    • Inability to click on reference icons, such as the magnifying glass or clickthrough
    • Inability to use some or all UI Actions, such as Update or Save
    • Inability to save data in certain fields
    • Form does not load completely
    • Inability to get the ServiceNow right-click context menu on the form or form objects
    • Potential causes include:
      • Malformed formatters
      • Gremlins
      • Client Script/UI Policy/UI Script throwing errors
  • Unique field issues
    The form may not be able to be submitted after a unique string field is submitted with a non-unique value. Even after the value is changed to a unique one, the form may still not be able to be submitted. The user may receive a message that says "Invalid update. Record has been deleted or you no longer have access to read".
  • TypeError  
    The script may stop the submit action for a specific view if the field does not exist on the form. To troubleshoot, add the fields used in the client script to the form layout.
  

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak