Recently, I have been facing fault in the bot, where it seems to open and close the applications during automation, for e.g. the bot was supposed to open excel, right after it opens, it closes immediately. I have tried debugging and it runs perfectly fine. I have not done anything to it and not sure what caused the error. This bot is ran on a desktop which my fellow colleagues usually remote access into to run the bot. The bot flow itself does not require any remote desktop access.
ERROR:
Info: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
RemoteException wrapping System.IO.DirectoryNotFoundException: The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.ObsoleteAsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
as you mentioned your colleagues were using this and it was working fine, there’s a chance you need to have a look at the path and make it dynamic as it might have some part of the path specific to your colleague’s machine.
Always use Environment variables to create the path string.
You can use Get Environment Folder activity that eill give you path of the current user’s folder path for My document, Download, etc
Thank you. I realise there is a difference in the file path. Hence, I changed the filepath in UiPath Studio to the current EXCEL filepath. However, another problem surfaced from UiPath is that “Access is denied”. How should I fix the access issue?
Current EXCEL filepath: “C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE”
Either that,
As my flow uses OUTLOOK.EXE and etc, is there an easy way for me change these file paths all at once? OR can I just select the EXEs and drop them into another file directory?
Side note: What could be the reason that caused the EXCEL.EXE/Microsoft Folder to have changed?