Bot execution suddenly stops in the middle of execution with no errors


Here i have used for each file in folder where word file is opened and replace text activity is used but the bot stop in the middle with no errors. Also used writeLine but no errors.

Hi @automate1 ,

Could you try logging the FilePath and check if it exists?

File.Exists("Template\Joining_Letter.docx"+CurrentRow.item(1).ToString)

Its hard to say why you are facing this issue.
It could be that there are no more files to process, or it could point to a much more serious issue.

Could you please provide more details? Like what exactly happens or is left over when the automation stops?

Kind Regards,
Ashwin A.K

1 Like

Hi @automate1

Welcome to UiPath community

Check how the machines is provisioned with the orchestrator, and try with “LoginToConsole” set to ‘True’ and try executing the Robot.

Have a look on the thread

Regards
Gokul

1 Like

Hello @automate1

Are you executing it from Studio ? If yes, can you try it in debug mode.

Also, can you confirm the Word files are not corrupted?

Thanks

1 Like

yes word files was corrupted, changed the location of word files

Is it resolved now?