Hello,
I have trouble checking in a page. We use basic workflow. Other pages have no such problem. Not sure what is wrong with this page.
When I try to checkin this page, I got error saying: An error occured during the page action. Message: Sequence contains no elements.
Exception type: System.InvalidOperationException Stack trace: at System.Linq.Enumerable.Single[TSource](IEnumerable1 source) at System.Linq.EnumerableExecutor1.ExecuteBoxed() at CMS.DataEngine.CMSQueryProvider1.Execute[TResult](Expression expression) at CMPEventsModule.GetEventLocationForInstanceName(TreeNode parent) at CMPEventsModule.GetEventSKUName(TreeNode instance, TreeNode details) at CMPEventsModule.UpdateInstanceInformation(TreeNode page) at CMPEventsModule.Workflow_CheckinBefore(Object sender, WorkflowEventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler2.StartEvent(TArgs e, Boolean allowEvent) at CMS.DocumentEngine.VersionManager.CheckInInternal(TreeNode node, String versionNumber, String versionComment) at CMS.FormEngine.Web.UI.CMSDocumentManager.CheckInDocument(String comment)
1 source) at System.Linq.EnumerableExecutor
1.Execute[TResult](Expression expression) at CMPEventsModule.GetEventLocationForInstanceName(TreeNode parent) at CMPEventsModule.GetEventSKUName(TreeNode instance, TreeNode details) at CMPEventsModule.UpdateInstanceInformation(TreeNode page) at CMPEventsModule.Workflow_CheckinBefore(Object sender, WorkflowEventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler
1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler
2.RaiseBefore(TArgs e) at CMS.Base.AdvancedHandler
Any suggestion what could be the problem with this page? I can't recreate the page since it's in use already. It ties to a product sku.
Thanks, Wei Wang
What version and hotfix are you using? Are you using MVC or portal engine? Does this happen on the Page tab or Form/Content tab too? What is different in this page when you compare it to others, which are not having this error?
We are using Kentico portal engine, version v11.0.48. It only happens on the Form tab, not Page or Design tab. I didn't see differences for this page. It could be an old page getting reused.
Is there any global event handler code handling some events for these pages? It is strange that it is not happening on Page tab. What kind of data are you saving and trying to publish?
It's actually a product.
Please, sign in to be able to submit a new answer.