Page Check in issue

Wei Wang asked on November 25, 2020 20:37

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)

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

Recent Answers


Juraj Ondrus answered on November 26, 2020 05:46

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?

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on November 30, 2020 19:00

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.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 1, 2020 07:13

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?

0 votesVote for this answer Mark as a Correct answer

Wei Wang answered on December 1, 2020 14:23

It's actually a product.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.