-
Notifications
You must be signed in to change notification settings - Fork 394
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Reporting an Issue
Running the Set-PnPHomeSite when you have multiple Viva Connections throws the following error:
"Set-PnPHomeSite: Operation is not valid due to the current state of the object."
Expected behavior
The Home site should be configured without any error.
Actual behavior
There is an error when running that cmdlet
Steps to reproduce behavior
- Go to Office 365 admin center -> Settings -> Viva -> Viva connections
- Ensure you have multiple Viva Connections. In my case I have the following:
- Open up PowerShell and run the following command:
Set-PnpHomeSite -HomeSiteUrl https://tenantName.sharepoint.com/sites/intranet
(please change the HomeSiteUrl parameter accordingly) - The following exception will be thrown:
Set-PnPHomeSite: Operation is not valid due to the current state of the object.
What is the version of the Cmdlet module you are running?
2.3.0 and 2.4.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
mbice
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working