Skip to content

➜ m365 spo homesite set throwing Error: Operation is not valid due to the current state of the object. #6066

@reshmee011

Description

@reshmee011

Priority

(Low) Something is a little off

Description

The cmdlet m365 spo homesite set -u https://reshmeeauckloo.sharepoint.com/sites/contosoportal is throwing "Error: Operation is not valid due to the current state of the object."
image

Steps to reproduce

Go to Office 365 admin center -> Settings -> Viva -> Viva connections
Ensure there are multiple Viva Connections.
In my instance I have

m365 spo homesite set -u https://reshmeeauckloo.sharepoint.com/sites/contosoportal is throwing "Error: Operation is not valid due to the current state of the object."

Expected results

The home site is set without any errors thrown

Actual results

The home site is not set and error"Error: Operation is not valid due to the current state of the object." is thrown

Diagnostics

No response

CLI for Microsoft 365 version

v7.9.0

nodejs version

v20.8.1

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions