[BUG] Invoking tenant template ends up in error: «Folder location for this channel is not ready yet, please try again later.»
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 259
- Forks
- 161
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
Reporting an Issue or Missing Feature
While invoking a tenant template, after teamifying the site beneath the Team the following error occurs:
Status Code: NotFound Microsoft.Graph.ServiceException: Code: NotFound Message: Folder location for this channel is not ready yet, please try again later. Inner error: Code: ItemNotFound Message: Folder location for this channel is not ready yet, please try again later. Inner error: AdditionalData: date: 2022-09-15T20:45:22 request-id: 119ed946-bb0f-47e8-999f-2ac947a7c80f client-request-id: 119ed946-bb0f-47e8-999f-2ac947a7c80f ClientRequestId: 119ed946-bb0f-47e8-999f-2ac947a7c80f at PnP.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyTenantTemplate(Tenant tenant, ProvisioningHierarchy hierarchy, String sequenceId, ApplyConfiguration configuration) at PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate.ExecuteCmdlet() at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord()
Steps to reproduce behavior
First, define the template:
<pnp:Teams>
<pnp:Team GroupId="{sequencesitegroupid:SPOTEAMSITE.01}" DisplayName="{parameter:TeamTitle}" Description="{parameter:Description}" Visibility="Private" Archived="false" MailNickname="{parameter:TeamAlias}" HiddenGroupMembershipEnabled="true" Classification="">
<pnp:FunSettings AllowGiphy="true" GiphyContentRating="Moderate" AllowStickersAndMemes="true" AllowCustomMemes="true"/>
<pnp:GuestSettings AllowCreateUpdateChannels="false" AllowDeleteChannels="false"/>
<pnp:MembersSettings AllowCreateUpdateChannels="false" AllowDeleteChannels="false" AllowCreatePrivateChannels="false" AllowAddRemoveApps="false" AllowCreateUpdateRemoveConnectors="false" AllowCreateUpdateRemoveTabs="false" />
<pnp:MessagingSettings AllowUserEditMessages="true" AllowUserDeleteMessages="true" AllowOwnerDeleteMessages="true" AllowTeamMentions="true" AllowChannelMentions="true"/>
<pnp:Security AllowToAddGuests="true">
<pnp:Owners ClearExistingItems="false">
<pnp:User UserPrincipalName="{parameter:TeamOwner}" />
</pnp:Owners>
</pnp:Security>
<pnp:Channels>
<pnp:Channel DisplayName="General" Description="General" IsFavoriteByDefault="true">
<pnp:Tabs>
<pnp:Tab DisplayName="Wiki" TeamsAppId="com.microsoft.teamspace.tab.wiki" Remove="true" />
<pnp:Tab DisplayName="OneNote" TeamsAppId="0d820ecd-def2-4297-adad-78056cde7c78" />
<pnp:Tab DisplayName="Cockpit" TeamsAppId="com.microsoft.teamspace.tab.web">
<pnp:Configuration EntityId="" ContentUrl="{sequencesiteurl:SPOTEAMSITE.01}" WebsiteUrl="{sequencesiteurl:SPOTEAMSITE.01}" RemoveUrl="" />
</pnp:Tab>
</pnp:Tabs>
</pnp:Channel>
<pnp:Channel DisplayName="Channel Two" Description="Channel Two" IsFavoriteByDefault="true">
<pnp:Tabs>
<pnp:Tab DisplayName="Wiki" TeamsAppId="com.microsoft.teamspace.tab.wiki" Remove="true" />
<pnp:Tab DisplayName="OneNote" TeamsAppId="0d820ecd-def2-4297-adad-78056cde7c78" />
<pnp:Tab DisplayName="Planner" TeamsAppId="com.microsoft.teamspace.tab.planner" />
</pnp:Tabs>
</pnp:Channel>
<pnp:Channel DisplayName="Channel Three" Description="Channel Three" IsFavoriteByDefault="true">
<pnp:Tabs>
<pnp:Tab DisplayName="Wiki" TeamsAppId="com.microsoft.teamspace.tab.wiki" Remove="true" />
</pnp:Tabs>
</pnp:Channel>
</pnp:Channels>
</pnp:Team>
</pnp:Teams>
Then, start the provisioning job:
$connAdmin = Connect-PnPOnline -Url "https://mytenant-admin.sharepoint.com/" -Credentials $credentials -ReturnConnection
$newSiteCollection = Invoke-PnPTenantTemplate -Template $provisioningTemplate -Parameters $pnpParameters -Connection $connAdmin -Verbose -ErrorAction Stop
The provisioning of the team site in SPO works fine, but after starting teamifying the team site, the provisioning job fails.
What is the version of the Cmdlet module you are running?
PnP.Powershell 1.10.0 (PowerShell 5.1)
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other: Azure Automation
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at PnP.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.ApplyTenantTemplate and follow the call into PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate.ExecuteCmdlet. Reproduce the XML tenant template and Invoke-PnPTenantTemplate command in Azure Automation, focusing on the teamifying step and the Microsoft Graph NotFound response. Done means the provisioning job completes without the folder-location error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100