Forum Discussion
Add-SPOSiteDesignTask : Operation is not valid due to the current state of the object.
rowanhucklebridge , Thanks for the reply. I have created new site without any additional content. So there is no pending changes and I am the only person having access to the site.
if I create site design for each site script its working good. But only problem I need register multiple site design to tenant.
if I combine site script and registered as one site design, throwing below error.
Please share your thought
Dinesh Bhat I'm not sure how much help I can be here. Whenever I've previously received the same error message that you've been receiving - "Operation is not valid due of the current state of the object" - it usually means that whatever I am attempting to edit or modify cannot currently be modified, for instance if it is already undergoing edits or changes. So whilst I don't think I'm able to suggest a fix for you, I might be able to help diagnose where things are going wrong.
To this end, do you have multiple site scripts interact with the same sections/functions/areas? Could this be where the issue is coming from?