Skip to main content

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.

 

 

 

@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 .


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.


@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?


@ChanduMohammad  Thank you for your prompt response!

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


@Shells 371 
 

 


@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?

 


Thanks a lot @ChanduMohammad , It works🤸🏽


Thanks a lot @ChanduMohammad , It works🤸🏽

Awesome @Shells 371 

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


Reply