Excel is quitting

Hi Team,

There is a bot running from orchestrator and the process is it will open excel file and run some macro, but at the beginning only it failed stating excel is open - quitting.

When i go and see there no excel which open at that location in virtual machine.

Kindly help me resolve this issue.

@Rakesh_Tiwari - Make sure you have to close all the excel application before opening new excel instance. To close all excel you can use ** Kill Process** activity.

1 Like

Hi sandipauti,

Thanks for your quick reply.

But the same process was running successfully before that and now it is failing and tried several times.

As i informed you that i checked manually in VM, and there no excel file is opened.

@Rakesh_Tiwari Check in control panel. It must be running.

Try adding 3 to 5 seconds delay between the excels scopes and kill excel. It should solve the issues.

Hi @Sugumar8785 i have checked in control panel.

but no file is open.And i am getting the below error

Info: Excel is open - Quitting

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Exception: Excel is open - Quitting
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

did you verify it with the task manager? The Excel process might just have bug or something

Hi @MaxyArthes .

Yes, i verified with the task manager, what it does that it opens excel but some of macro is not able to run under that.

it throws error stating excel is open-quitting.

How to fix it permanently.

And when we check manually, we can see that no macro is available.

How can be this possible.