- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:10 AM

var gr = new GlideRecord('sc_request');
gr.query();
while(gr.next()) {
gr.u_opened_for=gr.requested_for.getDisplayValue();
gr.setLimit(5);
gr.query(); gr.print();
//gr.update();
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:18 AM
Your current instance node is looping the script. Until it is able to clear itself by timing out you will likely need to switch nodes.
Logout of your instance and clear your browser cache. Then do a fresh login and you should get a different node. If this doesn't work you can switch nodes via browser plugins like SN Utils.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:22 AM
Open new tab in your browser
https://<INSTANCE>.service-now.com/cancel_my_transaction.do and Enter
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
It worked for me .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:15 AM
Further to Aman's post, if you want to print the output in the Scripts - Background window use this:
var gr = new GlideRecord('sc_request');
gr.setLimit(5);
gr.query();
while(gr.next()) {
gr.u_opened_for=gr.requested_for.getDisplayValue();
gr.update();
gs.print(gr.u_opened_for);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:16 AM

But the page is frozen, I can't even run the script again or load the page again

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2022 08:34 AM
Hello,
Close the browser or Ask someone who has admin access to kill the transaction, Also as per best practice it is recommended to use 'Fix script' that in too in Background as seen in below screenshot. Good Luck!
Regards,
Musab