Call was rejected by callee. (0x80010001 (RPC_E_CALL_REJECTED))

Hi,

I am encountering an issue during Excel operations where the automation fails with the following error:

Call was rejected by callee. (0x80010001 (RPC_E_CALL_REJECTED))

The issue occurs while performing activities using Excel Application Scope / Use Excel File.

Excel is installed on the machine, the file is not password protected, and no manual interaction with the file occurs during execution.

Kindly assist in identifying the root cause and suggest a permanent resolution or best practices to avoid this issue.

Thanks,
Pritam Senapati

hi @Pritam_Senapati

Close all Excel processes via Task Manager before running the bot, or add a Kill Process activity (“Excel”) at workflow start. Use a 1-2 second Delay after opening Excel scopes for initialization.

Kill Processes: Target “EXCEL.EXE” in a Kill Process activity.
Retry Logic: Wrap Excel scopes in Retry Scope (3 attempts, 2s delay).

Hi @Pritam_Senapati

Best approach just use kill activity in starting and ending for the excel application.
then use use excel file without desktop excel, disable add‑ins, and avoid parallel excel sessions to prevent this error.

If helpful, mark as solution. Happy automation with UiPath

This usually occurs when Excel is processing something in the background or instance is left open.
Recommended best practices to avoid this issue:

Prefer Modern Excel activities (Use Excel File) over Excel Application Scope, as they are more stable and less COM-dependent.
Avoid running multiple workflows or parallel activities on the same Excel file.
Disable Excel Add-ins and ensure no hidden pop-ups or recovery dialogs are blocking Excel.
Always close Excel properly after use and clean up EXCEL.EXE processes if needed.
For non-UI operations, use Workbook activities, which are the most stable option.
Wrap critical Excel actions inside a Retry Scope with small delays to handle transient COM failures.

Hi @Pritam_Senapati

Try and experiment with these properties on your Excel Process Scope.

Regards
Soren

@Pritam_Senapati

Try these settings in excel process scope

cheers

Hey,

As suggested by others use kill process and delay before first excel activity and enclose this in retry would be better.

Can you provide more info like is file large or has macros in it? this would help to pinpoint that the exact issue.