November Happy Hour will be moved to Thursday December 5th.

Error while indexing

Vote:
 

Hi,

I get the error " ERROR EPiServer.Find.Cms.ContentIndexer: An exception occured while indexing (Batch): Content with Guid "00000000-0000-0000-0000-000000000000" was not found"

when running the indexing job. It seams that the job then stops so not all content is indexed. 

How can I get hold of whats wrong? I had a similar problem but with a guid that actually existed in the ContentOwnerID column on tblContent, that was strange but easily fixed. This time I can't get hold of the problem.

Full stacktrace:

2014-12-19 12:58:46,412 [22] ERROR EPiServer.Find.Cms.ContentIndexer: An exception occured while indexing (Batch): Content with Guid "00000000-0000-0000-0000-000000000000" was not found EPiServer.Core.ContentNotFoundException: Content with Guid "00000000-0000-0000-0000-000000000000" was not found   at EPiServer.Core.DefaultContentLoader.Get[T](Guid contentGuid, LoaderSettings loaderSettings)   at EPiServer.Core.DefaultContentLoader.Get[T](Guid contentGuid, ILanguageSelector selector)   at EPiServer.Core.DefaultContentLoader.Get[T](Guid contentGuid)   at EPiServer.Core.DefaultContentRepository.Get[T](Guid contentGuid)   at EPiServer.Find.Cms.ContentExtensions.SiteId(IContent content)   at EPiServer.Find.DelegateValueProvider`2.GetValue(Object target)   at EPiServer.Find.ClientConventions.FieldConventionBuilder`1.<>c__DisplayClass2.<>c__DisplayClass4.b__1(Object instance)   at EPiServer.Find.DelegateValueProvider.GetValue(Object target)   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues(JsonWriter writer, Object value, JsonContainerContract contract, JsonProperty member, JsonProperty property, JsonContract& memberContract, Object& memberValue)   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject(JsonWriter writer, Object value, JsonObjectContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty)   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)   at EPiServer.Find.Api.BulkActionConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer)   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty)   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)   at EPiServer.Find.Json.Serializer.SerializeToStringBuilder(JsonSerializer serializer, Object value, StringBuilder buffer)   at EPiServer.Find.Api.BulkCommand.Execute()   at EPiServer.Find.Client.Index(IEnumerable objectsToIndex)   at EPiServer.Find.Cms.ContentIndexer.IndexWithRetry(IContent[] contents, Int32 maxRetries)   at EPiServer.Find.Cms.ContentIndexer.Index(IEnumerable`1 content, IndexOptions options)   at EPiServer.Find.Cms.ContentIndexer.<>c__DisplayClass16.b__e(Object x)

#114750
Dec 19, 2014 13:07
Vote:
 

You can add your own function that gets accessed for every content that beeing indexed. If you do that you might be able to catch the error and see more what's wrong.

In this blog post I show how to only index referenced files, change it to not look in media file and instead to catch all Icontent. In the function remove all and just do a try get on the content. When that fails have a breakpoint and go from there to investigate more

http://world.episerver.com/blogs/Henrik-Fransas/Dates/2014/3/Indexing-only-referenced-files-with-EPiServer-Find-75/

Good luck!

#114835
Dec 23, 2014 17:46
Vote:
 

Thank you Henrik. 

I mananged to find the files which was causing the problems. I removed them and added them again and everything works well. Really weird. Im was to fast to remove them so unfortunately I did not get to the root of the problem.

/Mårten

#115061
Jan 08, 2015 15:37
Vote:
 

Glad that it working now and I know the feeling on beeing to fast ;)

Please mark my answer as an answer if you think it helped you

#115062
Jan 08, 2015 15:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.