Script Background & Fix Scripts

Khanna Ji
Tera Guru

What is Script Background & Fix Scripts?

I think both are used for running ad hoc scripts without the use of any workflow object or BR etc. But what is the difference?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Swathi,

Fix script is best approach when you install new application or want some data fixes to be running after making some changes in prod. The best feature of fix script is you can monitor it's execution and check the progress and you can kill the transaction as well.

Never execute any insert/update/delete script from script background since if it takes long time the browser will timeout and also if any error comes in the script it may get into some loop.

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

16 REPLIES 16

Anvesha
Tera Contributor

In order to roll back a fix script you can either go to background transactions and delete the running transaction or can update the state to cancelled in the progress worker of the fix script.

 

sabell2012
Mega Sage
Mega Sage

Swathi:

This question was just brought to my attention. I wrote a comprehensive article on this topic a couple of years ago you might find of interest.

https://community.servicenow.com/community?id=community_blog&sys_id=e81eae2ddbd0dbc01dcaf3231f96194f

Hope it helps.

Steven.