Skip to main content

Hi , Unable to create session ''Default2'' as it already exists i have tried multiple times and updated the Packages.

  • Mar 17, 2024 4:59 PM UTC
  • 4 replies
  • 505 views

Unable to create session ''Default2'' as it already exists. i have tried multiple times and updated the Packages. still ,I’m getting the same error. Anyone have any other idea for this?

4 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • Mar 17, 2024 5:14 PM UTC

This error occurs when you have the session name active (e.g., a file open) then you try to open the same session name again, even if it is a different file. You must close the session before reopening it. You can cause this error with this simple automation:

The session from the Open is not closed, then when the Loop starts over, it tries to open again with the same session name. You must close the session to use the same session name again.

 


  • Author
  • Cadet | Tier 2
  • Mar 17, 2024 6:19 PM UTC

Hi @Aaron.gleason,

Thanks for the reply,

I have closed the session afor first session and inside of loop again opening excel session if I am closing the session.endless looping . If I am not closing the  session it's throwing a error.


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+6
  • Automation Anywhere Team
  • Mar 17, 2024 7:01 PM UTC

You have a logic error somewhere. Attach a screen shot of the offending code. 


Shoeb Shk
Forum|alt.badge.img
  • Navigator | Tier 3
  • Mar 18, 2024 5:14 AM UTC

Hello Ray,

 

Please remove the open excel command outside the loop. Also if you to open multiple excel inside the loop use a counter variable in the session name. In order to avoid session error.

 

Hope this resolves your issue.

 

Happy Automation