Copy-PnPFile stopped working #125
Replies: 3 comments 1 reply
-
Which version of PnP PowerShell are you using? |
Beta Was this translation helpful? Give feedback.
-
hi Manifest 1.3.0 PnP.PowerShell any ideas? |
Beta Was this translation helpful? Give feedback.
-
@stuartcporter - The following works for copying from one library to another within the same site: $sourceUrl = "/sites/sitepnp1/Shared Documents/TestDoc.docx"
$targetUrl = "/sites/sitepnp1/TargetLib/TestDoc.docx"
Copy-PnPFile -SourceUrl $sourceUrl -TargetUrl $targetUrl -OverwriteIfAlreadyExists -Force OR this: $sourceUrl = "Shared Documents/TestDoc.docx"
$targetUrl = "/sites/sitepnp1/TargetLib/TestDoc.docx"
Copy-PnPFile -SourceUrl $sourceUrl -TargetUrl $targetUrl -OverwriteIfAlreadyExists -Force |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
The following command stopped working for me since two weeks, it was working perfectly with no issues.
$SiteURL = "https://tenant.sharepoint.com/sites/SourceSite"
$SourceFolderURL = "/sites/SourceSite/Public"
$TargetFolderURL = "/sites/TargetSite/Public"
Connect-PnPOnline -Url $SiteURL -Credential $MyCreds
Copy-PnPFile -SourceUrl $SourceFolderURL -TargetUrl $TargetFolderURL -SkipSourceFolderName -Force -OverwriteIfAlreadyExists
Copy-PnPFile : Unknown Error
At line:1 char:1
Could anyone please assist?
Thank you,
Beta Was this translation helpful? Give feedback.
All reactions