Skip to main content
Question

"The Process cannot access the file because it is being used" Error


Forum|alt.badge.img

Hi All,

 

From about 8 - 10 days, My team started experiencing the "The Process cannot access the file because it is being used" Error. Bots used to work for months without issue suddenly began failing on this exact action for Excel or CSV files.

 

We are getting this randomly across different bots. The file is not being used by any other bots or users. The path is also not being used by anybody else.

 

Looking forward to your immediate help. 

2 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+16
  • Most Valuable Pathfinder
  • 3276 replies
  • October 17, 2023

Hi @PAVAN 5380 ,

 

Please find the below 

 

Bots used to work for months without issue suddenly began failing on this exact action for Excel or CSV files - Might the related packages ar upgraded, Kindly verify the packages.

 

We are getting this randomly across different bots. The file is not being used by any other bots or users. The path is also not being used by anybody else

Previous execution sessions are not closed yet, that might caused the issue. 

 

As Best Practice, 

After you have automated the CSV/TXT-related tasks, close the file using the Close action. Enter the session name that was used to open the file with the Open action

 

 

 

 

 

Forum|alt.badge.img+8
  • Automation Anywhere Team
  • 136 replies
  • October 23, 2023

Hi @PAVAN 5380,

  1. Verify that no security applications are accessing the file while the bot is running.
  2. Review the bot's logic to confirm that it correctly terminates file sessions before invoking the same file under a different action.

Hope this helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings