Gravatar for jaroslav.kramer@cegeka.be

Question by jkramer, Nov 26, 2015 10:09 AM

Items inexplicably not indexed

Hello,

items of a certain template stubbornly refuse to be indexed by Coveo, no matter what I do. No ExcludeTemplate hints are being used. What could be the cause of this issue? Is there a way to debug this other than the CES console? Thanks in advance.

Additional data:

Current Coveo for Sitecore version: 3.0.1123.0

Current Sitecore version: 7.0.130918

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Nov 26, 2015 10:21 AM

Did you check the Sitecore logs? There could be an error at indexing time for all items of that template…

Gravatar for jaroslav.kramer@cegeka.be

Comment by jkramer, Nov 27, 2015 3:39 AM

Hello, jflheureux ♦♦,

hmm, there seems to be a lot of InvalidItemExceptions and UriFormatExceptions connected with the items. Here's a sample:

ManagedPoolThread #8 09:00:14 ERROR Item {B832DAB5-E961-4D8E-97DD-347BA451921F} will be skipped because an exception occurred while processing it. An exception occurred when processing the item with the id : {B832DAB5-E961-4D8E-97DD-347BA451921F}
Exception: Coveo.Framework.Exceptions.InvalidItemException
Message: An exception occurred when processing the item with the id : {B832DAB5-E961-4D8E-97DD-347BA451921F}
Source: Coveo.SearchProviderBase
at Coveo.SearchProvider.Documents.AbstractDocumentFactory.TryBuildDocument(Action p_Action, IIndexable p_Indexable)
at Coveo.SearchProvider.Documents.DocumentFactory.CreateIndexableItem(IIndexable p_Indexable, IPipelineArgsFactory p_PipelineArgsFactory, PropertyStoreConfig p_PropertyStoreConfig)
at Coveo.SearchProvider.AbstractIndexOperations.<GetDocumentsToIndex>d__1c.MoveNext()

Nested Exception

Exception: System.UriFormatException
Message: Invalid URI: The format of the URI could not be determined.
Source: System
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at Coveo.SearchProvider.Documents.ItemLinkFactory.GetClickableUri(IIndexableWrapper p_Indexable)
at Coveo.SearchProvider.Documents.DocumentBuilder.AddLinks()
at Coveo.SearchProvider.Documents.DocumentFactory.<>c__DisplayClass8.<CreateIndexableItem>b__7()
at Coveo.SearchProvider.Documents.AbstractDocumentFactory.TryBuildDocument(Action p_Action, IIndexable p_Indexable)
Gravatar for sbelzile@coveo.com

Comment by Sébastien Belzile, Nov 27, 2015 8:32 AM

I have seen this error before. Do you use a custom LinkProvider (web.config -> )? What are the settings of your LinkManager?

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Nov 27, 2015 9:00 AM

Hi M. Kramer,

This error can occur when using a custom LinkProvider and ignoring the "AlwaysIncludeServerUrl" setting.

A case similar to yours was troubleshoot via support and a fix was written to prevent this error from occuring. The fix will be available with the December 2015 release of Coveo for Sitecore.

Here are two ways to solve your problems:

  1. Specify a "ServerUrl" in the configuration (Coveo.SearchProvider.config file).
  2. Modify your custom LinkProvider to include the ServerUrl.
Ask a question