On premise! Update set export fails due to 300 second timeout

oliolio
Giga Guru

Hi,

We're running Servicenow on Premise and where we have 4 different environment. Development, acceptance, production and test.

We've recently completed a large project where we have developed a new service portal. In the development environment the changes are spread out over a number (26) different update sets with around 20 000 updates in total. They also belong to different application scopes. All of them have dependencies amongst eachother and need to be moved as a batch to the acceptance environment to ensure that we do not encounter errors along the way.
However, when trying to export the update set batch the system hits the 300 second timeout and we are unable to export the updates.

Does anyone have any suggestions? 

We've tried running the below script but no luck there.

"var updateSetExport = new UpdateSetExport();
var updateGR = new GlideRecord('sys_update_set');
updateGR.get('sys_id', 'SYS_ID');
updateSetExport.exportUpdateSet(updateGR);"

 

BR 
Ola Thews

1 ACCEPTED SOLUTION

Found it! Transaction quota rules governs this and we are able to change the quota from there. We'll see if it helps.

View solution in original post

6 REPLIES 6

Andrew Barnes -
ServiceNow Employee
ServiceNow Employee

Greetings Ola,

 You can retrieve the batch from the target instance - or you can use a non-interactive script to generate your batch export and make it an attachment you can download - or you can increase the session timeout to more than 5 minutes.

-Andrew Barnes
Join me at Developer Blog

How do i increase the session timout?

Since i would need to increase the transaction quota and we're currently trying to find where to do that it would be great if you knew!

Sunil B N
ServiceNow Employee
ServiceNow Employee

Hi Ola,
You can modify the session timeout using: glide.ui.session_timeout property. Please note that this value is in minutes.

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/user_sessions/task/t_M...

I hope this helps,
Cheers,
Sunil B N