Ca you try to use workbook activities it will give absolute results
Try this if it works please mark this as a solution
Thanks, I need to use only modern as per my requirements
And also this error getting only in run mode in debugging it’s working fine
Wherever you are using classic activities if it is not working try to use modern activities it will work.
Happy automation if it works mark this as a solution thank you
Hi @kavitimoulika135 Use Kill process activity to kill the excel process in the beginning.
Also let me know what exactly you are performing here please share list of actions.
Use some delays and check as well kill process with process name as “excel”
Before performing any action inside excel put some delay.
I’ve already used kill process and delays with 2-3 seconds
Kill Process shouldn’t be used like this. It can leave Excel in an improper state and cause errors, corrupt files. Too many people use Kill Process as if it’s an automatic thing you should do. It isn’t.
Stop doing that. You don’t need Kill Process and you don’t need delays. Take that code out. Reboot. Then test. If you’re still seeing the errors, show us your code.
Basic sanitation required in your code.
Don’t use two Excel process scope inside each other. If you have to work on multiple files at the same time, use two Use Excel file activities in a single Excel process scope
If you are using Kill Process inside the Excel Process scope to Kill the excel, remove this code and put it outside of it.
one thing that you need to do is keep use excel file inside excel processs cope and from options select automation,kill process,use fresh session,disable macros if not needed ..also remove kill process as excel process scope would handle it better
cheers
-
You might ising multiple Excel scopes/instances at the same time leading to conflicts.
-
Try to keep all Excel activities inside a single Excel Application Scope instead of opening and closing multiple times.
-
Make sure the Excel file isn’t opened manually
-
Always use the Close Workbook or Quit method to release Excel objects instead of relying on the process to exit.
Mark solution if its help ![]()
Thank You all Problem solved already
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
