pnp / PnP-PowerShell

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

[BUG] Move-PnPFile moves file but it is undone after some time #2985

Open HeKr09 opened 4 years ago

HeKr09 commented 4 years ago

Reporting an Issue or Missing Feature

Move-PnpFile is not moving all files and I don't know when it moves or not.

Expected behavior

I expect to move all files

Actual behavior

I move several files with the code. The most of the files are copied, still exist in the old page and then after some minutes are removed from the old site. But some files are copied, still exist in the old page and then after some minutes are removed from the new site. So no success in moving.

Steps to reproduce behavior

$fileServerRelativeUrl = Get-PnPProperty -ClientObject $file -Property "ServerRelativeUrl" $targetServerRelativeLibraryUrl = "$TargetWebServerRelativeUrl/$listUrlName" Move-PnPFile -TargetServerRelativeLibrary $targetServerRelativeLibraryUrl -ServerRelativeUrl $fileServerRelativeUrl -Force

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

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

3.26.2010.0

How did you install the PnP-PowerShell Cmdlets?