Cannot Run Bot

Dear community,

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)

  • Start Time: 11/01/2021 1:31:09 AM

The error states that tje path wasn’t found.

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

Hope this helps!

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?

Inside UiPath Studio: “C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE”

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?

that’s access related issue, you can get it confirmed it from IT or change the path to a accessible one

why you need to access the exe files?

You can have the files moved to a standard folder that can serve as one folder input.

My colleague ran the robot again. This is the full error. Is this due to the UiPath issue or the IT/Desktop access problem?

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context, IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.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)

Q: why you need to access the exe files?
A: To open the applications (excel/outlook), I am accessing the exe files.

You are using Excel and Outlook Exe to open those application amd then perform UI automation there?
Is this what you are trying to achieve?

You can consider using Outlook and Excel activities if that serves your purpose.

if you are opening the application then you should have access too that folder.

Consider trying other means of opening the application. Start process, open application or cmd

If you have access related error in all then you’ll have to request access to that folder.