Browse each excel file then replace values but it's slow

I’m using StudioX. My problem is like this:
File A: this is a master excel file, including 2 columns (old code column and new code column)

File B: in the content of this excel file, I need to replace all old codes with new codes (according to file A)

I have this problem: I use “For Each File in Folder” to read all B files in a specified folder. At first, UiPath runs very fast (about the first 200 files), but then it runs slower, then almost no work. I am guessing it is due to the memory of excel. Can someone help me?

Thanks you for help me!

@mai-dinhngoc

It might happen due to memory issue only

Try to have deete temp files and then continue

Cheers

Do you mean delete in folder %temp%?
I tried it and it didn’t work.

@mai-dinhngoc,

Try Isolating the excel workflow.

How to do that?

  1. Move this logic into a separate workflow and invoke that workflow here.
    This image depicts the steps for reading and replacing values in Excel files, where each file is read, each row in a master file is processed, and values in file B are replaced based on corresponding values from columns B and C in file A. (Captioned by AI)

  2. Select Isolated property to True or checked of Invoke Workflow File

image

This will create another instance of UiPath Executor which will get closed or garbage collected once the workflow will finish execution.

I am using StudioX, can you tell me which control can I use to isolate the excel process? Can you give me detailed instructions?
Tkanks you!

@mai-dinhngoc

try using excel process scope

cheers

Thanks you! I have direction.

1 Like