UiPath errors / Other

The process cannot access the file because it is being used by another process

platform: UiPath / category: Other

Cause

An Excel file stays locked by a prior Excel activity or an orphaned Excel.exe because the Application Scope was not closed cleanly, or multiple branches access the same file at once.

Fix

Wrap all Excel operations in one Excel Application Scope (or Use Excel File) so the handle is released on exit. Avoid Append Range in loops; accumulate rows in a DataTable and write once. Kill lingering Excel processes with a Kill Process activity at the start. Ensure no conflicting Excel instance is open.

Source thread →

Part of the Automation Error Index — UiPath errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem