Hello,
We’re using Episerver Find to index the content of a website.
After backstaging the production database to our local dev server I tried to re-index the website content to our dev instance of Episerver Find using the scheduled job (manually).
When trying to re-index the scheduled job throws several exceptions:
Indexing job [mysite.dev] [content]: Reindexing completed. ExecutionTime: 3 minutes 2 seconds Number of contents indexed: 1931 Number of content errors: 0 Number of batch errors: 5 WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information) WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): The request was aborted: The request was canceled. (see log for more information) WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information) WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): Ambiguous match found. (see log for more information) WIN-L6B2S8QVFBU: An exception occurred while indexing (Batch): The request was aborted: The request was canceled. (see log for more information) Indexing job [Global assets and other data] [content]: Reindexing completed. ExecutionTime: 0 minutes 2 seconds Number of contents indexed: 0
When I checked the log there are several occurences of the two following errors:
2016-01-27 12:21:19,094 [9] WARN EPiServer.Web.PermanentLinkMapper: Failed to resolve 'http://Check out this link on Instagram' System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.UriBuilder..ctor(String uri) at EPiServer.UrlBuilder.Init(String url) at EPiServer.Web.PermanentLinkMapper.TryToPermanent(String url, String& permanentUrl) System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at System.UriBuilder..ctor(String uri) at EPiServer.UrlBuilder.Init(String url) at EPiServer.Web.PermanentLinkMapper.TryToPermanent(String url, String& permanentUrl)
and
2016-01-27 12:21:31,863 [9] ERROR EPiServer.Find.Cms.ContentIndexer: MyComp: An exception occurred while indexing (Batch): Ambiguous match found. System.Reflection.AmbiguousMatchException: Ambiguous match found. at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) at System.Type.GetProperty(String name) at EPiServer.Find.Cms.ContentExtensions.<GetSearchableProperties>d__10.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at EPiServer.Find.Cms.ContentExtensions.SearchText(IContentData contentData) at EPiServer.Find.DelegateValueProvider`2.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.SerializeToTextWriter(JsonSerializer serializer, Object value, TextWriter textWriter) at EPiServer.Find.Json.Serializer.SerializeObjectsToJsonRequest(JsonSerializer serializer, IJsonRequest jsonRequest, IEnumerable values) at EPiServer.Find.Api.BulkCommand.Execute() 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__DisplayClass19.<ReIndex>b__e(IEnumerable`1 currentBatch, ParallelLoopState loopstate)
The first error seems due to a bad link url format (possibly by the editor) but since there's no content id available I don't know how to find this so I can fix it.
The second error I guess is due to json conversion going wrong somewhere, but I'm kind of stumped on this one.
As a result of this no content is indexed.
Any ideas on how to solve this?
Best regards,
Jesper