pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG]: Request_ResourceNotFound error in Add-PnPMicrosoft365GroupToSite #2928

Open priteshmohanty opened 3 years ago

priteshmohanty commented 3 years ago

Reporting an Issue or Missing Feature

Error while groupfying a site using Add-PnPMicrosoft365GroupToSite Message - {"odata.error":{"code":"Request_ResourceNotFound","message":{"lang":"en","value":"Resource '34d3389a-8497-47a4-ac09-216ec0286cd3' does not exist or one of its queried reference-property objects are not present."}}}

Expected behavior

Groupify the site works sometimes but intermittently it throws error.

Actual behavior

Please describe what you see instead. Please provide samples of HTML output or screenshots

Message - {"odata.error":{"code":"Request_ResourceNotFound","message":{"lang":"en","value":"Resource '34d3389a-8497-47a4-ac09-216ec0286cd3' does not exist or one of its queried reference-property objects are not present."}}}

Steps to reproduce behavior

Create a new teamsite and groupify using the below command. It works well for us but we have used it in automation and this command fails intermittently. image

Add-PnPMicrosoft365GroupToSite -Url $newSiteFullURL -DisplayName $newSiteName -Alias $newSiteAlias -Owners $ownersEmails -KeepOldHomePage -IsPublic:$isPublicGroup -Description $newSiteDescription

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.25.2009.1

How did you install the PnP-PowerShell Cmdlets?