Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

How to stop "Save Workbook" activity to save a copy of the excel file if the file is already open

$
0
0

@bokapakhi wrote:

Hi,

I am working on a robot which needs to read from and excel file, write something in the same excel file and finally save the file. To save, I am using the “Save Workbook” activity - which is working fine.

Now, a potential business exception is that if the excel file is opened by another user during the robot operation, then the robot should stop working and raise this as an exception. But what happens is when the activity Save Workbook is ran, if the file is opened by another user, it fails as fault but then it saves it as a new excel file. I don’t want a new excel file to be created in this directory. I am able to capture the fault with try catch so the error is handled. Don’t want an additional file being created.

Please help.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>