Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Invoke-PnPSiteTemplate #1041

Open
CgMunoz opened this issue Jul 23, 2024 · 0 comments
Open

Error with Invoke-PnPSiteTemplate #1041

CgMunoz opened this issue Jul 23, 2024 · 0 comments

Comments

@CgMunoz
Copy link

CgMunoz commented Jul 23, 2024

Hi all!

I'm trying to clone a SharePoint Online site to another within the same tenant. I would like to have 2 identical sites.

I have extracted the site template by:

$mastersiteConn = Connect-PnPOnline -Url https://xxxxxxxx.sharepoint.com/sites/xxxxxxxx -Interactive -ReturnConnection
$path = "template.pnp"
Get-PnPSiteTemplate -Out $path -Connection $mastersiteConn -force

With the template created, i ran:

Connect-PnPOnline -Url https://xxxxxxxx.sharepoint.com/sites/yyyyyyyyy -Interactive
Invoke-PnPSiteTemplate -Path template.pnp

I got several warnings of this kind: WARNING: User 'i:0#.f|membership|[email protected]' not found, cannot add to group

And after those warnings the proccess ends with this message:

Invoke-PnPSiteTemplate: No puede conceder a un usuario el nivel de permisos de acceso limitado.

If i see the generated PnP log:

pwsh Error: 0 : 2024-07-23 12:08:49.3626 [PnP.Framework] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: No puede conceder a un usuario el nivel de permisos de acceso limitado.

at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)

at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()

at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)

at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()

at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()

at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()

at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)

ServerErrorCode: -2146232832

ServerErrorTypeName: Microsoft.SharePoint.SPException

ServerErrorTraceCorrelationId: d5133fa1-a0b5-9000-74a6-488ad7234b9b

ServerErrorValue:

ServerErrorDetails:

. 0ms

I don't know how get rid this issue and be able to clone the site.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant