Skip to main content
Question

Unable to stop the current bot

  • May 30, 2025
  • 5 replies
  • 64 views

Forum|alt.badge.img+3

Unabled to delete this run task

5 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • May 30, 2025

Have your administrator move the task to history.

 


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • May 30, 2025

@balu567 

You can try to reset your device with API Device (Remember that you must use the authentication API first.):POST - https://{yourcontrolroom}/v2/devices/reset Body:{ "deviceIds": {  "ids": [<Device ID>]  }}For all devices:Body:{  "allDevices": {  }}For occasions that are not specified:Body:{ "deviceIds": {  "ids": [-1]  }}

 

or 

Query below  : SELECT * FROM DEVICE_RUNAS_USER_USAGE where user_id != '-1';

 

Delete the record with the user id that got stuck 


Forum|alt.badge.img+3
  • Author
  • Cadet | Tier 2
  • May 31, 2025

I don’t have that Move activity to history option 

 


Forum|alt.badge.img
  • Cadet | Tier 2
  • May 31, 2025

Try removing your device and adding it again.


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • June 10, 2025

If you’re unable to stop the current bot, a few things you can try:

🔹 If you have admin access, ask them to move the task to history – that usually clears the stuck bot.

🔹 You can also reset the device using the API:

POST - https://{yourcontrolroom}/v2/devices/reset  

Body: { "deviceIds": { "ids": [<Device ID>] } }  

Make sure to call the authentication API first.

 Some also check this query:

SELECT * FROM DEVICE_RUNAS_USER_USAGE WHERE user_id != '-1';  

If you find the stuck user ID, deleting that record might help.

If nothing works, try removing and re-adding your device — that fixed mine once. 

Hope it helps!