Thursday, 12 January 2017

Sitecore WebAPI Error - "ExceptionMessage":"experienceAnalytics/api/logger"

If you are using custoim APIs and you start seeing the following error message on your CD server:

{ 
"Message":"An error has occurred.",

"ExceptionMessage":"experienceAnalytics/api/logger",

"ExceptionType":"System.InvalidOperationException",

"StackTrace":"at Sitecore.ExperienceAnalytics.Api.ApiContainer.CreateObject[T](String xpath)

at Sitecore.ExperienceAnalytics.Api.Http.Filters.NotFoundExceptionFilterAttribute..ctor()

at System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor)

at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)

at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)

at System.Web.Http.Controllers.HttpControllerDescriptor.InvokeAttributesOnControllerType(HttpControllerDescriptor controllerDescriptor, Type type)

at System.Web.Http.Controllers.HttpControllerDescriptor..ctor(HttpConfiguration configuration, String controllerName, Type controllerType)

at Sitecore.Services.Infrastructure.Web.Http.Dispatcher.NamespaceHttpControllerSelector.InitializeControllerDictionary()

at System.Lazy`1.CreateValue()

at System.Lazy`1.LazyInitValue()

at Sitecore.Services.Infrastructure.Web.Http.Dispatcher.NamespaceHttpControllerSelector.FindMatchingController(String namespaceName, String controllerName)

at Sitecore.Services.Infrastructure.Web.Http.Dispatcher.NamespaceHttpControllerSelector.SelectController(HttpRequestMessage request)

at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"

}

Make sure that you have removed or disabled the following dlls:

  • Sitecore.ExperienceAnalytics.Client.dll
  • Sitecore.ExperienceAnalytics.dll
  • Sitecore.ExperienceAnalytics.ReAggregation.dll
As per the recommendation from Sitecore:

xAnalytics assembly files

If you have implemented custom code that uses ASP.NET Web API attribute routing, to avoid errors we recommend that you disable the following .dll files in the \Website\bin folder:
  • Sitecore.ExperienceAnalytics.dll
  • Sitecore.ExperienceAnalytics.Client.dll
  • Sitecore.ExperienceAnalytics.ReAggregation.dll

No comments:

Post a Comment