The error happens because you are trying to open the same file multiple times inside one Excel Process Scope. Even with “reuse Excel Process Scope” enabled, UiPath does not reuse the session if you add multiple Use Excel File for the same file.
Instead, use one Use Excel File for each Excel file. If you need multiple sheets, add multiple Read Range activities inside the same container.
Hi,Thank you for your reply.
However, Read Range of “Config\config.xlsx”“Sheet1” raised the same error as the next line.
範囲を読み込み: ブック: C:\Users\Config\config.xlsx において Sheet1 を現在のシートに設定できませんでした。元のエラー メッセージ: RPC サーバーを利用できません。 (0x800706BA)
How come this happens? May I think this a UiPath bug?
Hey @gorby read all sheets you need before entering the loop Read Range ("Sheet2") → dt_Sheet2Read Range ("Sheet1") → dt_Sheet1 then run your For Each Row on dt_Sheet2.
Based on the information you provided, I don’t believe there is a mistake in my code. One possible reason it isn’t working could be that this project was created by copying an older project and then modifying it. The original project has similar code but runs without any issues. It seems that in UiPath, there are cases where modifying old code can cause it to stop working.
You’re right — the issue may not be in your logic.
When projects are copied from older ones:
. Hidden settings or mismatched activity versions can break Excel Process Scopes.
. The safest fix is to start fresh and bring over only the XAML files and variables.
Starting a large project from scratch is a lot of work , so I hope UiPath will change the specifications to allow older projects to be copied and modified without issues.