Skip to main content
Cadet | Tier 2
March 6, 2025
Question

BOTS running forever and do not finish

  • March 6, 2025
  • 7 replies
  • 257 views

My bots have not been running for the past 2 weeks and the top scheduled bot keeps running and not finishing. I am still new to Automation Anywhere. Please advise as users are impatient now. I have restarted the BOT runners servers and the control room server but still problem persists. I even stopped the running bot and the next one also hangs and keeps running. I restarted all the BOT services that are set to automatic but still no change.

    7 replies

    Lu.Hunnicutt
    Pathfinder Community Team
    Pathfinder Community Team
    March 6, 2025

    Hi! I don’t have the answer to this but I’m tagging a few folks I think may be able to support you here. It may require a deeper dive into what exactly is happening, so keep your eyes on this thread. Thanks!

    @Aaron.Gleason 

    @Shreya.Kumar 

    @Dineshkumar Muthu 

    @ChanduMohammad 

     

    Let's Connect! www.linkedin.com/in/lu-hunnicutt-1290jan
    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    March 6, 2025

    @Phathisani Dube When you say the “top scheduled bot keeps running and not finishing”, you’re talking about the Activity > In progress window, correct? Something like this?

    In this case, we have an automation that started 4 hours ago and still hasn’t finished. If this is the case, when you check on the Bot Runner machine, is it running an automation or doing nothing?

    If you can give additional detail and screen shots, we may be able to assist further.

    Dineshkumar Muthu
    Flight Specialist | Tier 4
    Flight Specialist | Tier 4
    March 6, 2025

    Hi ​@Phathisani Dube ,

    It might be helpful to check the bot code to identify the exact line where it's getting stuck and examine that action closely. Here are a few areas to investigate:

    1. The Excel macro (as an example): Opening Excel may cause the process to get stuck.

    2. The while loop (as an example): Ensure there is a break condition to avoid an infinite loop.

    To know more details, check the bot logs. These steps could assist you in troubleshooting the issue.

    If you need further assistance, feel free to reach out to me directly.

    "Everything fails all the time, so plan for failure and nothing fails" - Werner Vogels ========== Linkedin Profile : https://www.linkedin.com/in/dineshkumar-muthu/
    Cadet | Tier 2
    March 7, 2025

    I have attached a screenshot of my bots. I have also checked space on the Control room and bot runners as well as database server and all is good.

    Cadet | Tier 2
    March 7, 2025

    Nothing has been changed at the moment as all the bots have always been running successfully.

    Dineshkumar Muthu
    Flight Specialist | Tier 4
    Flight Specialist | Tier 4
    March 7, 2025

    Hi ​@pdube 

    Please check the code on line one of your email connect. It appears there is no error handler implemented. Based on the screenshot you provided, line one is labeled as "Email." You need to add an error handler to address any potential issues.

    "Everything fails all the time, so plan for failure and nothing fails" - Werner Vogels ========== Linkedin Profile : https://www.linkedin.com/in/dineshkumar-muthu/
    Cadet | Tier 2
    March 13, 2025

    I have discovered that the bots hang on sending emails. We recently changed our company email address from e.g. pdube@mycompany.com to pdube@comp.gold and the bots stopped running. Previously the bots did not have a problem. Anyone please advise.