Replies: 2 comments
|
This is not a connection-selection problem; the exception shows a client/server API mismatch. The current The current cmdlet documentation also describes cross-site copying as being within the same tenant and links to the SharePoint Online limits: https://pnp.github.io/powershell/cmdlets/Copy-PnPFile.html Two extra points:
So this particular cross-site-collection operation is not supported by current For comparison, PnP's own guidance says the current |
|
Thanks for getting back and confirming. |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to use Copy-PnPFile to copy a folder between document libraries in different site collections on SharePoint Subscription Edition. I am using a script as here
Connect-PnPOnline -Url $Source -TransformationOnPrem -CurrentCredential
Connect-PnPOnline -Url $dest -TransformationOnPrem -CurrentCredential
Copy-PnPFile -SourceUrl "/Shared Documents/Two" -TargetUrl "/sites/test/Migrated" -Overwrite -Verbose
I get this error
Copy-PnPFile: {"odata.error":{"code":"-1, Microsoft.Data.OData.ODataException","message":{"lang":"en-US","value":"The property 'SameWebCopyMoveOptimization' does not exist on type 'SP.CopyMigrationOptions'. Make sure to only use property names that are defined by the type."}}}
Is the issue with the way I am connecting to the site collections and then using the connections? or is this not possible with on-prem SharePoint.
All reactions