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 when try to run Invoke-PnPTenantTemplate #28

Open
janekk97 opened this issue Aug 25, 2021 · 4 comments
Open

Error when try to run Invoke-PnPTenantTemplate #28

janekk97 opened this issue Aug 25, 2021 · 4 comments

Comments

@janekk97
Copy link

Note: I use Invoke instead of Apply, but the problem occurs both for Invoke and Apply.

Invoke-PnPTenantTemplate : {"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"
pl-PL","value":"Odmowa dost\u0119pu."}}}
At line:1 char:1
+ Invoke-PnPTenantTemplate -Path .\SiteDesignsStudio.pnp -Parameter @{T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Invoke-PnPTenantTemplate], Exception
    + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate
@sparkitect
Copy link

Note: I use Invoke instead of Apply, but the problem occurs both for Invoke and Apply.

  • Invoke-PnPTenantTemplate -Path .\SiteDesignsStudio.pnp -Parameter @{T ...

Try -Parameters (with an 's' at the end) instead...
👉documentation👈

@janekk97
Copy link
Author

janekk97 commented Aug 27, 2021

@sparkitect I've tried. Still the same problem.

Invoke-PnPTenantTemplate : {"odata.error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"
pl-PL","value":"Odmowa dost\u0119pu."}}}
At C:\Users\jonek\Downloads\sp-site-designs-studio-master\setup\PnPPowershell\setup.ps1:20 char:1
+ Invoke-PnPTenantTemplate -Path .\SiteDesignsStudio.pnp -Parameters @{ ...                                             
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : WriteError: (:) [Invoke-PnPTenantTemplate], Exception 
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate

@janekk97
Copy link
Author

janekk97 commented Sep 1, 2021

@ypcode any idea how to solve this?

@sparkitect
Copy link

sparkitect commented Sep 1, 2021 via email

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

2 participants