2sxc: Error while indexing module

I’m submitting a … [x] bug report [x] not sure

…about [x] DNN parts [x] other / unknown

Current behavior With DNN scheduler on, sitecrawler logs errors on some 2sxc modules (only 4 out of dozens).

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID:1adec68a-9569-473e-b909-fbc181f932de UserAgent: ExceptionHash:pjsTiISMGyPjSpSAIDVdiS+vPv8= Message:Search: Error while indexing module xxx on tab xxx, portal x StackTrace:

at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2sxc Dnn\Environment\Dnn7\DnnBusinessController.cs:line 102 at DotNetNuke.Services.Search.ModuleIndexer.IndexSearchDocuments(Int32 portalId, ScheduleHistoryItem schedule, DateTime startDateLocal, Action`1 indexer)

InnerMessage:Rendering Exception

InnerStackTrace: at ToSic.SexyContent.Engines.EngineBase.CheckTemplatePermissions(ITenant tenant) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\SexyContent\Engines\EngineBase.cs:line 149 at ToSic.SexyContent.Engines.EngineBase.Init(Template template, App app, IInstanceInfo hostingModule, IDataSource dataSource, InstancePurposes instancePurposes, SxcInstance sxcInstance, Log parentLog) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\ToSic.Sxc\SexyContent\Engines\EngineBase.cs:line 56 at ToSic.SexyContent.Environment.Dnn7.Search.SearchController.GetModifiedSearchDocuments(IInstanceInfo instance, DateTime beginDate) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2sxc Dnn\Search\SearchController.cs:line 140 at ToSic.SexyContent.Environment.Dnn7.DnnBusinessController.GetModifiedSearchDocuments(ModuleInfo moduleInfo, DateTime beginDate) in C:\Projects\2sxc-dnn742\Website\DesktopModules\ToSIC_SexyContent\2sxc Dnn\Environment\Dnn7\DnnBusinessController.cs:line 98

Source:ToSic.Sxc.Dnn

  • 2sxc version(s): 9.32.1
  • DNN: [9.2.2 ]

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

you’ll need to reference the namespace, sorry. see https://github.com/2sic/2sxc/blob/01bca1f263213c6ac8ec1ae1cecb52901cbbb970/ToSic.Sxc/SexyContent/Engines/InstancePurposes.cs

so you should probably do

@using ToSic.SexyContent.Engines;

or

if(InstancePurpose == ToSic.SexyContent.Engines.InstancePurposes.IndexingForSearch) {
  // put code here which should only run in indexing mode
} else {
  // put code here which should only run in view-mode
  // for example, the button-show-hide code
}

I don’t have the knowledge to understand your suggestions or the linked pages. Guess I’ll try again in a few years. Thank you anyway.