How to stop an infinite loop

amaradiswamy
Kilo Sage

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

14 REPLIES 14

arpitt
Tera Expert

Hi Amaradi,



Go to active transactions and kill the respective active transaction.



Regards,


Arpit Taneja


Hi Arpit,



I have tried with your suggestion but still i am able to see the logs. Please advice.



Thanks,


Swamy


Hi Amaradi,



Kindly raise ticket with servicenow to get this active query killed.



Regards,


Arpit Taneja


Brad Tilton
ServiceNow Employee
ServiceNow Employee

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