web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / copy folder from a net...
Power Automate
Unanswered

copy folder from a network share (not sharepoint) to sharepoint folder synchronised to my desktop

(0) ShareShare
ReportReport
Posted on by 9

When trying to copy a folder ("File copy" / "Bestanden kopiëren") from a netwerkshare to a folder on my desktop I get an error: "file can not be copied"

 and "entrance/entry refused". There is some notice about "overwrite" as well but i selected "do nothing" at "if file exists"

How do i solve this? 

 

Complete error message (in dutch) is: 

" Toegang tot het pad G:\Overleg Incidenteel is geweigerd.: Microsoft.Flow.RPA.Desktop.Robin.SDK.ActionException: Kan bestand G:\Overleg Incidenteel niet kopiëren naar F:\ONE+SHP\S\S-G-Schijf - Documenten\Overleg Incidenteel ---> System.UnauthorizedAccessException: Toegang tot het pad G:\Overleg Incidenteel is geweigerd.
bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bij System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
bij Microsoft.Flow.RPA.Desktop.Modules.File.Actions.FileActions.CopySingleFile(FileVariant source, FolderVariant destination, Boolean overwrite)
--- Einde van intern uitzonderingsstackpad ---
bij Microsoft.Flow.RPA.Desktop.Modules.File.Actions.CopyFile.Execute(ActionContext context)"
bij Microsoft.Flow.RPA.Desktop.Robin.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement) 

I have the same question (0)
  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    As far as I can translate your ducth, it tells you that you or the user dont have access to G:\Talk. (Google translate 😊)


    If you are running this script in unattended mode, please make sure that the user, running the script have access to G:\Talk

  • DucoM Profile Picture
    9 on at

    Yes that is my conclusion as well. However, on the real desktop i can open both folders without any problems. So in Powerautomate DESKTOP it should work as on my desktop... But that is apparently not the case. 

    How do i proceed?

  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    1) You can list the files in directory g:\talk using a file-explorer - right?

    2) You start PAD using the same credentials, used to logon to the machine - right?

    Can you list the content of the folder (G:\Yourpathhere) using "get files in folder" from Pad?

  • DucoM Profile Picture
    9 on at

    Hi Highboy, It is possible to list G: with "Bestanden in de map ophalen" (get files in folder) from Powerautomate desktop (PAD) but it takes a verry long time. When i use a subdirectory (less files) i get the output in "(x) files". So this is possible.

  • DucoM Profile Picture
    9 on at

    .. it is also possible to write the "(x)files" output to the "F:\ONE+SHP\S\S-G-Schijf - Documenten\Overleg Incidenteel".

    I wonder what is the difference with the direct approach (so without the "(x) files in between" but for now this works. However the solution is not complete.

     

    The g:\talk has a lot of (sub)(..)(sub)directories i need to copy - better synchronize - the both directory structure and the files in it. 

    When i use "get files in folder" and i use "bestanden kopiëren" (file copy) i get al the files in one directory. They need to be placed in there own subdirectory. I suppose i have to do this with "Map kopiëren" (copy folder). This seems to work as well.  So the remaining issue is the synchronization of the to folders. How do i arrange this with power automate desktop? 

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard