Try our conversational search powered by Generative AI!

Exceptions thrown during Find indexing

Fixed in

EPiServer.CMS.Core 11.15.0

(Or a related package)

Created

Dec 17, 2019

Updated

Apr 03, 2020

Area

CMS Core

State

Closed, Fixed and tested


Description

The following exception is thrown a lot during the Find indexing job. A restart of the application fixes the problem:

EPiServer.Find.Cms.ContentIndexer : An exception occurred while filtering content: 2904. The 'ShouldIndex' function could not be evaluated for Content: 2904. Value does not fall within the expected range.. (see log for more information)
EPiServer.Find.Cms.ContentIndexerException: The 'ShouldIndex' function could not be evaluated for Content: 2904. Value does not fall within the expected range. ---> System.ArgumentException: Value does not fall within the expected range.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name)
   at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
   at System.Web.HttpRequest.get_Url()
   at EPiServer.Web.Internal.Net45HostResolver.get_HostName()
   at EPiServer.Core.ContentProvider.GetTestIntervalKey()
   at EPiServer.Core.ContentProvider.CheckLicense()
   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)
   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)
   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)
   at EPiServer.Find.Cms.Conventions.DefaultShouldIndexConvention.ShouldIndex(IContent content)
   at EPiServer.Find.Cms.ContentIndexer.ShouldIndex(IContent content)
   --- End of inner exception stack trace ---
   at EPiServer.Find.Cms.ContentIndexer.ShouldIndex(IContent content)
   at EPiServer.Find.Cms.ContentIndexer.<>c__DisplayClass62_4.<ReIndex>b__1()",

I could not find any errors in the log files related problems during init for the affected instance.