Gravatar for rdhuyvetters@reference.be

Question by Rik, Dec 29, 2015 9:28 AM

Errors in the logfile

Hi guys,

I set up a new Coveo on a server and am now creating the indexes.

But I'm getting errors in the log:

ManagedPoolThread #6 13:24:41 Coveo.SearchProvider.CoveoItemCrawler.DoAdd(:0) INFO  The item {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1} in the language en and version 1 has been added.
ManagedPoolThread #6 13:24:41 Coveo.Framework.CNL.Precondition.RaiseArgumentException(:0) WARN  Precondition failed: The parameter 'p_Url' must not be an empty string
ManagedPoolThread #6 13:24:41 Coveo.SearchProvider.Documents.AbstractDocumentFactory.TryBuildDocument(:0) ERROR An exception occurred while trying to process the item {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1}: Precondition failed: The parameter 'p_Url' must not be an empty string
Parameter name: p_Url
Exception: System.ArgumentException
Message: Precondition failed: The parameter 'p_Url' must not be an empty string
Parameter name: p_Url
Source: Coveo.Framework
   at Coveo.Framework.CNL.Precondition.RaiseArgumentException(String p_Message, String p_ParameterName)
   at Coveo.Framework.Utils.UrlUtilities.IsAbsoluteUrl(String p_Url)
   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)

ManagedPoolThread #6 13:24:41 Coveo.SearchProvider.AbstractIndexOperations+<GetDocumentsToIndex>d__1c.MoveNext(:0) ERROR Item {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1} will be skipped because an exception occurred while processing it. An exception occurred when processing the item with the id : {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1}
Exception: Coveo.Framework.Exceptions.InvalidItemException
Message: An exception occurred when processing the item with the id : {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1}
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.ArgumentException
Message: Precondition failed: The parameter 'p_Url' must not be an empty string
Parameter name: p_Url
Source: Coveo.Framework
   at Coveo.Framework.CNL.Precondition.RaiseArgumentException(String p_Message, String p_ParameterName)
   at Coveo.Framework.Utils.UrlUtilities.IsAbsoluteUrl(String p_Url)
   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)

Any idea what is going wrong?

Gravatar for vlambert@coveo.com

Comment by vince, Dec 29, 2015 11:10 AM

Just to get more information on the topic, what is the nature of the item {CA5BDBF2-D599-46F7-BA60-CDBAAF8287A1}? Is it always the same item? What is your version of Sitecore and the version of Coveo for Sitecore?

This error would occur if the LinkManager from Sitecore cannot resolve the link for the item, returning an empty url.

1 Reply
Gravatar for rdhuyvetters@reference.be

Answer by Rik, Dec 30, 2015 3:32 AM

There are a few different GUIDs, but they do occur several times. I checked them out and apparently they are all unpublished items (unpublish date exceeded or publish date not reached).

Coveo shouldn't index them I guess, or at least log a better error.

Thank you for pointing me in the right direction, Jean-François

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Dec 30, 2015 2:00 PM

I'll redirect the thanks to @Vince.

If Coveo tries to process those items, it's because Sitecore asks Coveo to do so. At the same time, Sitecore's LinkManager looks to return an empty string for their URLs.

Ask a question