Email Script Stuck in While Loop - How to Stop/Kill It

Chris Armstrong
Kilo Guru

Hi,

Within our test instance, while testing some code within an email script, I set a while loop where I shouldn't have and now the script is stuck in a loop.

It's not sending out emails - so that's good. But I know its stuck in a loop because I am using gs.log within the code, and its hammering our log table.

I tried killing All Transacations and I also tried the following URL: https://removedtest.service-now.com/cancel_my_transaction.do

...but neither stopped the email script loop.

I also resolved the incident that the Email Script is tied too and I also canceled the Workflow it's tied too, but it's still looping.

Any assistance would be greatly appreciated.

Note: I've already opened a HI support case in the instance it needs to be terminated from the server side.

1 ACCEPTED SOLUTION

Chris Armstrong
Kilo Guru

Support was able to terminate the while loop - and they stated that it can be done from the User end via the following link:

Replace "yourinstance" with your instance name:

https://yourinstance.service-now.com/nav_to.do?uri=%2Fv_cluster_transaction_list.do%3Fsysparm_query%...

 

View solution in original post

3 REPLIES 3

Brian Lancaster
Tera Sage

Try gong to User Administration > All Active Transactions and kill it from there.

Tried that - didn't help.  Also tried the 'Active Transactions (All nodes)', and tried the following URL: https://removedtest.service-now.com/cancel_my_transaction.do 

Didn't have any luck with the above.

Chris Armstrong
Kilo Guru

Support was able to terminate the while loop - and they stated that it can be done from the User end via the following link:

Replace "yourinstance" with your instance name:

https://yourinstance.service-now.com/nav_to.do?uri=%2Fv_cluster_transaction_list.do%3Fsysparm_query%...