I cannot able to delete the excel file after deploying in live. I have defined the file dynamically and am not getting any error either. Can someone please help me on this.
what activity you are using to delete file…?
Is your path defined somewhere or it is hardcoded?
Now i can able to delete the file but now am unable to create new excel sheet. Can you please help on this.
What are you using to create an excel? If you are using Excel Application Scope it would automatically create if a file does not exist
I am using Excel application scope only, when i tried before deploying it to orchestrator its working fine. After deploying to orchestrator its not creating the excel file.
Please find the error information below.
- “Execution error : System.ArgumentException: The sheet does not exist.\r\n at UiPath.Excel.WorkbookApplication.SetSheet(String sheetName, Boolean createNew)\r\n at UiPath.Excel.Activities.ExcelInteropActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)\r\n at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)”
Are you running the bot on same machine on which you have the Studio or somewhere else? Do you have microsoft office installed there? Also please check the path what you have given. See this -
Thanks @PrankurJoshi. This helped me to solve my issue.
Great close the thread by checking solution checkbox it will help others too then