Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

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

Open
1 of 3 tasks
molislaegers opened this issue Dec 15, 2020 · 0 comments
Assignees
Labels

Comments

@molislaegers
Copy link

molislaegers commented Dec 15, 2020

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?

@molislaegers molislaegers changed the title [BUG] [BUG] - ove-PnPFolder : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Dec 15, 2020
@molislaegers molislaegers changed the title [BUG] - ove-PnPFolder : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. [BUG] - Move-PnPFolder : The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. Dec 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants