I have migrated from SharePoint 2010 to SharePoint 2016.
I get "Sorry something went wrong" error while creating list. But finally the list is created. This happens only in one site collection and it works just fine in other site collection in the same web application.
Below is the error message from ULS logs:
System.InvalidOperationException: Operation is not valid due to the current state of the object. at Microsoft.SharePoint.SPEventReceiverDefinitionCollection.GetSqlToAddEventReceivers(Guid siteId, Guid webId, Guid hostId, SPEventHostType hostType, Byte[] sourceId, Guid solutionId, SPEventReceiverSource sourceType) at Microsoft.SharePoint.SPListCollection.FixEventReceivers(Guid lid)
at Microsoft.SharePoint.SPListCollection.CreateListFromRpc(NameValueCollection queryString, Uri& nextUrl) at Microsoft.SharePoint.ApplicationPages.NewListPage.BtnOk_Click(Object sender, EventArgs args) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
How to resolve this issue or Any idea why this error occurs?