Skip to main content

ServiceNow RITMs loading slow

 Although in our case the root cause was a "dodgy" business rule in the development environment which we managed to resolve, nevertheless the answer from ServiceNow Support was an interesting one worth noting:

Thanks for the patience while I was checking further on the issue.

Request items records take ages when attempting to open them

1. IN '*****dev' instance go to sc_req_item table
2. Observe it will take forever to open record.

The reason that the list view of table sc_req_item is loading very slow is actually due to the column "Stage" of the list. This is because of stage field type is 'workflow'.
When the type is workflow for stage column ,it is represented in graphical way.
The query to generate the workflow stage icons is more expensive in terms of database performance than if a single keyword is displayed to render their stage.

1)To solve the issue ,stage field type should be changed from workflow to string.
2)Goto Dictionary application in navigation and select sc_req_item table and stage column.
3)Change the type from Workflow to string
4)Save the form.
5)After performing the above change sc_req_item.LIST will be opened within few seconds.
6)If the stage field cannot be changed globally then remove stage field from list layout of sc_req_item table.

Please refer below knowledge article for reference:
Modifying 'Workflow Stage' field from Graphical to Text:

The reason why it is causing issue when opening manually created RITMs is that it does not have any stage associated.
It is not a correct way to create RITM.

Next Steps:
Please review above information, hope it answers your query. Feel free to update for any query or concern.

 (ServiceNow )


(ServiceNow )


Popular posts from this blog

Get URL Parameter - server side script (portal or classic UI)

Classic UI : var sURL_editparam = gs . action . getGlideURI (). getMap (). get ( ' sysparm_aparameter ' ); if ( sURL_editparam == 'true' ) { gs . addInfoMessage ( 'parameter passed ); } Portal : var sURL_editparam = $sp . getParameter ( " sysparm_aparameter " ); if ( sURL_editparam == 'true' ) { gs . addInfoMessage ( 'parameter passed ); }

URL link in addInfoMessage

var ga=new GlideAjax('gld_HR_ajax'); ga.addParam('sysparm_name', 'checkEmployeeNumber_hrProfile'); ga.addParam('sysparm_hrprofilenumber', g_form.getValue('number')); ga.addParam('sysparm_employeenumber', newValue); ga.getXMLAnswer(function(answer) { if (answer!='undefined' && answer!=''){ var navURL="<a style='text-decoration:underline;color:blue'" + answer + ">" + answer + "</a><img width='3' src='images/s.gif'/>"; var sMsg='The employee number entered already exists on another HR Profile ' + navURL; //alert(sMsg); g_form.showErrorBox('employee_number', 'error - please check'); g_form.addInfoMessage(sMsg); } });