Skip to content

Applying Template: you need to connect to the target page not admin site #9708

@ceitwitt

Description

@ceitwitt

While following the instruction to install pathways,

Connect-PnPOnline https://<tenant>-admin.sharepoint.com/ -Interactive

Invoke-PnPTenantTemplate -Path .\your-template-file.pnp -Parameters @{"SiteTitle"="<Title-of-your-target-site>";"SiteUrl"="/sites/<URL-of-your-target-site>"}

I got the response:

WARNING: The source site from which the template was generated had a base template ID value of SITEPAGEPUBLISHING#0, while the current target site has a base template ID value of TENANTADMIN#0. This could cause potential issues while applying the template.
Invoke-PnPSiteTemplate: Object reference not set to an instance of an object.

And documentation should have connecting as well to before invoke template

Connect-PnPOnline https://<tenant>.sharepoint.com/sites/<URL-of-your-target-site> -Interactive
right?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Needs: Triage 🔍Awaiting categorization and initial review.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions