Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[BUG] Apply-PnPTenantTemplate : Exception while invoking endpoint #2795

Open
jhaebets opened this issue Oct 22, 2020 · 1 comment
Open

[BUG] Apply-PnPTenantTemplate : Exception while invoking endpoint #2795

jhaebets opened this issue Oct 22, 2020 · 1 comment

Comments

@jhaebets
Copy link

Thank you for reporting a bug. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use SharePoint Developer Group at Microsoft Tech Community. Thanks!

Environment

[x ] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

I am creating a SharePoint Site and Teamify that site using Apply-PnPTenant Template. The site and all libraries and content types provision without error.

When it comes to applying / overlaying the team this error appears. I am using GroupId="{sequencesitegroupid:TEAM.SITE.01} in the pnp:teams XML

Apply-PnPTenantTemplate : Exception while invoking endpoint
https://graph.microsoft.com/beta/teams/1be3d873-b239-40f1-ac5d-b126f04a4540/channels.
At line:1 char:4

  • Apply-PnPTenantTemplate -Path 'C:\temp\teamify.xml' -Paramete ...
+ CategoryInfo          : WriteError: (:) [Apply-PnPTenantTemplate], ApplicationException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

The Team ID is correct. Interesting though it is calling the beta graph endpoint.

If I run apply-pnptenantteamplte with just the Teams component as per below, and manually enter the ID of the group, it run as expected.

<pnp:Teams>
<pnp:Team GroupId="1be3d873-b239-40f1-ac5d-b126f04a4540"
		  DisplayName="XXClient3"
	Description="This is my test team created with PNP"
	Visibility="Public" Archived="false" MailNickname="XXClient3">
	<pnp:FunSettings AllowGiphy="true" GiphyContentRating="Strict"
	  AllowStickersAndMemes="true" AllowCustomMemes="true"/>
	<pnp:GuestSettings AllowCreateUpdateChannels="false" AllowDeleteChannels="false"/>
	<pnp:MembersSettings AllowCreateUpdateChannels="true" AllowDeleteChannels="false"
	  AllowAddRemoveApps="true"
	  AllowCreateUpdateRemoveConnectors="true"
	  AllowCreateUpdateRemoveTabs="false" />
	<pnp:MessagingSettings AllowUserEditMessages="true" AllowUserDeleteMessages="true"
	  AllowOwnerDeleteMessages="false"
	  AllowTeamMentions="true"
	  AllowChannelMentions="true"/>
	<pnp:Security>
		<pnp:Owners ClearExistingItems="true">
			<pnp:User UserPrincipalName="joshua@onmicrosoft.com" />
		</pnp:Owners>
		<pnp:Members ClearExistingItems="true">
			<pnp:User UserPrincipalName="joshua@onmicrosoft.com" />
		</pnp:Members>
	</pnp:Security>
	<pnp:Channels>
		<pnp:Channel DisplayName="General"
					 Description="General"
					 IsFavoriteByDefault="true">
			<pnp:Tabs>
				<pnp:Tab DisplayName=" Documents"
			   TeamsAppId="com.microsoft.teamspace.tab.files.sharepoint">
					<pnp:Configuration EntityId=""
								  ContentUrl="{sequencesiteurl:TEAM.SITE.01}/Documents"
									   WebsiteUrl=""
									   RemoveUrl="" />
				</pnp:Tab>
				<pnp:Tab DisplayName="Wiki" TeamsAppId="com.microsoft.teamspace.tab.wiki"
					Remove="true" />
				<pnp:Tab DisplayName="OneNote"
					TeamsAppId="0d820ecd-def2-4297-adad-78056cde7c78" />

			</pnp:Tabs>
			
		</pnp:Channel>
	</pnp:Channels>
</pnp:Team>

</pnp:Teams>
</pnp:Provisioning>

Running 3.26.2010.0

Let me know if any further information would help.

Thanks

@ghost
Copy link

ghost commented Oct 22, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Oct 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant