Gravatar for

Question by jpalbuja, Oct 2, 2017 8:00 PM

Precondition failed: The parameter 'p_UserAgent' must not be null Exception

Hi guys, I am working with Coveo 7.0 x64 Build 8541.0 in windows 8.1 Pro. The problem that I have is that when I add the rendering "Coveo Page View Analytics View" into a page I am getting the following:

Exception: System.ArgumentNullException Message: Precondition failed: The parameter 'p_UserAgent' must not be null Parameter name: p_UserAgent Source: Coveo.Framework at Coveo.Framework.CNL.Precondition.NotNull(Object p_Parameter, String p_ParameterName) at Coveo.Framework.Http.HttpRequestUserAgentResolver.IsCoveoUserAgent(String p_UserAgent) at Coveo.UI.Mvc.Models.AnalyticsModel.AreAnalyticsEnabled(Boolean p_HasUserEnabledAnalytics, ISitecoreContext p_SitecoreContext) at ASP._Page_Views_Coveo_PageViewAnalyticsView_cshtml.Execute() in c:\inetpub\wwwroot\iewc.b2b\Website\Views\Coveo\PageViewAnalyticsView.cshtml:line 14 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at Sitecore.Mvc.Presentation.ViewRenderer.Render(TextWriter writer)


1 Reply
Gravatar for

Answer by François Lachance-Guillemette, Oct 2, 2017 8:18 PM

Which version of Coveo for Sitecore?

This is an issue that has been fixed with the September Release (4.0.1536.6), with the issue `SC-2075`.

I will see to add some details there so that is better describe which problem it fixed :)

Gravatar for

Comment by jpalbuja, Oct 2, 2017 8:24 PM

Hi @François Lachance-Guillemette I am using Coveo for Sitecore 81 4.0 (402).zip. So which process should I follow to fix this? Thanks

Ask a question