pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets

Home Page:https://pnp.github.io/powershell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

molislaegers opened this issue · comments

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?

  • [X ] PnP PowerShell for SharePoint Online

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

v3.24.2008.0

How did you install the PnP-PowerShell Cmdlets?

  • MSI Installed downloaded from GitHub
  • Installed through the PowerShell Gallery with Install-Module
  • Other means

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