Forum Discussion
jbtzz
Jan 04, 2023Copper Contributor
Copy site from one tenant to another using a template is giving an "access denied" error
Hello everyone, I need to replicate a site from one tenant to another. For that, I'm following the steps in C-Sharp Corner, which consists in two simple code snippets: Export site template fro...
- Feb 27, 2023Take a look at this issue, maybe it'll help. https://github.com/pnp/pnpframework/issues/848
vinzgagnz
Feb 27, 2023Copper Contributor
Take a look at this issue, maybe it'll help. https://github.com/pnp/pnpframework/issues/848
jbtzz
Feb 28, 2023Copper Contributor
I solved this by actually deleting the faulty lines from the generated template (pointed out by adding this line to the code, before the Invoke-PnPSiteTemplate line: Set-PnPTraceLog -On -LogFile "C:\log.txt" -Level debug).
However, I'm marking this as the best response as it's a valid workaround and could help others.
However, I'm marking this as the best response as it's a valid workaround and could help others.