pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] - Move-PnPFolder : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. #3032

Open molislaegers opened 3 years ago

molislaegers commented 3 years ago

Reporting an Issue or Missing Feature

Issue:

Move-PnPFolder : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.
At C:\Scripts\Sharepoint Folder move.ps1:21 char:8
+        Move-PnPFolder -Folder $SourceFolderURL -TargetFolder $TargetF ...
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Move-PnPFolder], WebException
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Files.MoveFolder

Expected behavior

Expected behavior: Copy the folder to the new library

Actual behavior

See error above

Steps to reproduce behavior

Try to copy a huge folder (but less then 5000 items, because of the list-view treshold error)

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

v3.24.2008.0

How did you install the PnP-PowerShell Cmdlets?

When the time-out appears, my source folder is gone.. Should all the files be moved, or did I loose files?