Skip to main content
Answer

Hello There

  • January 23, 2023
  • 8 replies
  • 111 views

Forum|alt.badge.img+1

Hello There,
I was trying to automate a bot that creates a docx certificate for each employee and it was working well at the first run, but once I start to run the bot over and over again, this error message appears ''The process can't access the file because it's being used by another process '' and I can't do anything.

 

 

 

Best answer by ChanduMohammad

@ChanduMohammad  Thank you for your prompt response!

How to do so, is there an action for that?

Hi @Shells 371 

Can you try below command and let us know if that helps?

 

8 replies

rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • January 23, 2023

@Shells 371 seems the document already open, use close word document before running the process or opening the file…. so that it will close any open session with that document .


Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • January 23, 2023

Hi @Shells 371 

In your code add last step as closing the Word extension files to avoid above error. basically you need to clear the environment i.e closing the apps that have used so next run will be smooth.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • January 23, 2023

@Shells 371 seems the document already open, use close word document before running the process or opening the file…. so that it will close any open session with that document .

 

@rbkadiyam Thank you for your prompt response!

How to do so, is there an action for that?


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • January 23, 2023

@ChanduMohammad  Thank you for your prompt response!

How to do so, is there an action for that?


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • January 23, 2023

@Shells 371 
 

 


Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • Answer
  • January 23, 2023

@ChanduMohammad  Thank you for your prompt response!

How to do so, is there an action for that?

Hi @Shells 371 

Can you try below command and let us know if that helps?

 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • January 23, 2023

Thanks a lot @ChanduMohammad , It works🤸🏽


Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • January 23, 2023

Thanks a lot @ChanduMohammad , It works🤸🏽

Awesome @Shells 371 

Mark my Answer as Best so it will help other as well.