question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while indexing module

See original GitHub issue

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 ]

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
iJungleboycommented, Dec 17, 2018

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
}
1reaction
enfJoaocommented, Dec 17, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2SXC - SearchIndexException: Search: Error while ...
The real culprit is Visual Studio! When you are checking your module out, if you have a site configured on IIS, project will...
Read more >
Errors on startup in log: "Error while indexing..."
Everytime I load a Java project I get errors like this in my error ... Error while indexing /Users/jhall/.gradle/caches/modules-2/files-2.1/ ...
Read more >
Problems when indexing after upgrade
Cms.ContentEventIndexer: An exception occurred while indexing (IContent). Self referencing loop detected for property 'ManifestModule' with type 'System.
Read more >
Errors While Indexing in Magento Cloud Environment #1242
This issue occurs in both our "staging" and production environments which share a resources in the Magento Cloud. .magento/services.yaml.
Read more >
SearchApiException while trying to index items on Node ...
Hi everyone Up on running Drupal cron the expected output is nodes should be get indexed and instead it was throwing an error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found