Move Folder Exception: Access to the path is denied

Hi All,

I encountered an error where Robot moves a folder containing files and sub-folders to another folder in SharePoint. The process is to moves the folder from 01 Input to 02 In Progress.

Below is the error message throw by UiPath Studio:
Move folder exception: Access to the path ‘C:\Users\myusername\OrganizationDirectory\SharePointRootFolder\ProjectName\PROD\02 In Progress\InputFolderName\Reference’ is denied.

I’ve checked the permission to the file and folders had granted. There is no error when moves the folder manually. It only happened when runs with Robot.

Also, I noticed the Robot had moved the folder from 01 Input to 02 In Progress folder successfully.


HOWEVER, the folder which had moved to 02 In Progress also remain in 01 Input but with empty files. Suspect this is the part causes Robot throws exception.


Has anyone has any idea on this?

Thanks.

I have the same problem, did you find a solution?

Hi @sergio.m.lopes,

We found a workaround by using PowerShell code.
You may try Invoke PowerShell code.


Set the parameter as below:

Reference link:
Move-Item (Microsoft.PowerShell.Management) - PowerShell | Microsoft Learn

1 Like

Hi @Gwen

Now that your issue is resolved, please consider marking your last post as solution so this topic can be closed.

Regards
Sonali

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.