powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Move-PnPFile -IgnoreVersionHistory

Open Bryand13 opened this issue 2 years ago • 5 comments

Hello all,

Reporting an Issue or Missing Feature

Please confirm what it is that your reporting

Cmdlet "Move-PnPFile -IgnoreVersionHistory" is not working as expected.

Expected behavior

When using "Move-PnPFile -IgnoreVersionHistory" i expect to see in the target site only the last version for the file moved.

Actual behavior

When using "Move-PnPFile -IgnoreVersionHistory" it moves all version history for one file.

*The actual behaviour was also confirmed by Microsoft Premier Support.

Steps to reproduce behavior

Move-PnPFile -SourceUrl "/teams/Site1/Move/1 - copia (4).txt" -TargetUrl "/teams/Site2/Moved/" -IgnoreVersionHistory

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

Using 1.8.46-nightly PnP.PowerShell but its not working since the 1.8.0 version.

Which operating system/environment are you running PnP PowerShell on?

  • [X] Windows
  • [ ] Linux
  • [ ] MacOS
  • [ ] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

Bryand13 avatar Nov 23 '21 14:11 Bryand13

Similar to my issue #1246 but opposite way

veronicageek avatar Nov 27 '21 15:11 veronicageek

Reproduced on version 1.9.5.

veronicageek avatar Dec 31 '21 13:12 veronicageek

@Bryand13 - Can you try again with the nightly release? (Today is 1.10.64)

veronicageek avatar Jun 30 '22 07:06 veronicageek

Yes i can. I'll let you know something ASAP. Thank you @veronicageek.

Bryand13 avatar Jul 01 '22 12:07 Bryand13

Hello @veronicageek,

I did the test today and unfortunatelly i had no luck. The version history is still moved to the target site.

Command used: Move-PnPFile -SourceUrl "/teams/site1/Librera_4/file.txt" -TargetUrl "/teams/site2/Moving" -IgnoreVersionHistory

Module version: 1.11.0 PnP.PowerShell installed on machine.

Regards.

Bryand13 avatar Jul 05 '22 11:07 Bryand13

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Dec 24 '22 02:12 github-actions[bot]

Still an issue in 1.12.79 (history moved).

veronicageek avatar Jan 30 '23 17:01 veronicageek

@Bryand13 - A new version of CSOM has been released last week (which we are consuming), can you please update to the latest release 2.1.x however you will need PS 7.2 or later to benefit from it.

PS5 support has been dropped in the new release.

veronicageek avatar Apr 04 '23 20:04 veronicageek