-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Set-PnPHomeSite throws an error when you have multiple Viva Connections #3978
Comments
Hi @ryder-cayden |
Hi @reshmee011... The Set-SPOHomeSite works fine based on my testing. I did not get the same error. |
I could reproduce the issue with set-pnphomesite. I checked the code, nothing unusual. It used to work in the past. I will try to find out why it is not working. |
@reshmee011 - found a fix for this , will PR as well shortly. Ran into this while working for a customer project, sorry 😟 |
@reshmee011 @ryder-cayden - this issue has been fixed now. Will be available in tomorrow's nightly builds and the next major one when we release it. Thanks for reporting and looking into it. |
Thanks so much @gautamdsheth for the fix. |
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
Set-PnpHomeSite -HomeSiteUrl https://tenantName.sharepoint.com/sites/intranet
(please change the HomeSiteUrl parameter accordingly)
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?
The text was updated successfully, but these errors were encountered: