How to stop an infinite loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 06:45 AM
Hi All,
I have written a scheduled job for inserting some records into a table. At first i have written a wrong condition and this resulted into an infinite loop. I have deleted the scheduled job also and created a new scheduled job with the correct conditions. But, the logs that i have included in the script for testing are coming continuously. Is there any way to stop these type of logs.
Thanks in advance.
Regards,
swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 06:47 AM
Hi Amaradi,
Go to active transactions and kill the respective active transaction.
Regards,
Arpit Taneja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 07:01 AM
Hi Arpit,
I have tried with your suggestion but still i am able to see the logs. Please advice.
Thanks,
Swamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 07:08 AM
Hi Amaradi,
Kindly raise ticket with servicenow to get this active query killed.
Regards,
Arpit Taneja

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2015 06:47 AM
I would try cancelling your transaction. You could do it in the way described in the wiki article or through the active transactions module.
Cancelling a Transaction - ServiceNow Wiki