Local content analyzer for BlockEnhancements not working on CMS 11

Vote:
 

I've downloaded and installed EPiServer.Labs.BlockEnhancements 0.12.1.

We are using EPiServer.CMS.Core 11.20.11 and EPiServer.CMS.UI 11.36.4.

When I try using the Local content analyzer, the title gets updated with the Item count I enter in (for example "List of shared blocks that can be converted (top 2)") but the "Loading..." message remains in the sections where the statistics and list of blocks should be.

In Application Insights, the following exception properties appear for both "GET LocalContentAnalyzer/GetSharedBlocksToConvert" and "GET LocalContentAnalyzer/GetStatistics":

Message Value cannot be null. Parameter name: key
Exception type System.ArgumentNullException
Failed method EPiServer.Commerce.Catalog.Provider.MetaClassToContentTypeMap.GetMetaClassName
Problem Id System.ArgumentNullException at EPiServer.Commerce.Catalog.Provider.MetaClassToContentTypeMap.GetMetaClassName
Assembly EPiServer.Business.Commerce, Version=12.13.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7

Here is an example call stack for GetSharedBlocksToConvert:

System.ArgumentNullException:
   at System.ThrowHelper.ThrowArgumentNullException (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Collections.Generic.Dictionary`2.FindEntry (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at System.Collections.Generic.Dictionary`2.TryGetValue (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at EPiServer.Commerce.Catalog.Provider.MetaClassToContentTypeMap.GetMetaClassName (EPiServer.Business.Commerce, Version=12.13.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at EPiServer.Commerce.Catalog.DataAccess.CatalogContentDB.ListContentOfContentType (EPiServer.Business.Commerce, Version=12.13.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at EPiServer.Core.Internal.DefaultContentModelUsageService+<>c__DisplayClass5_0.<ListContentOfContentType>b__0 (EPiServer, Version=11.20.11.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at EPiServer.Core.ContentProviderMap.Iterate (EPiServer, Version=11.20.11.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at EPiServer.Core.Internal.DefaultContentModelUsageService.ListContentOfContentType (EPiServer, Version=11.20.11.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at EPiServer.Labs.BlockEnhancements.LocalContentAnalyzerController.GetSharedBlocksToConvert (EPiServer.Labs.BlockEnhancements, Version=0.12.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7)
   at lambda_method (Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker+<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12 (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction (System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)

The call stack is similar for GetStatistics

Has anyone else also had this issue?

Is there a query I could run on our database to see whether the data is the cause of the issue?

Thanks!

#282196
Jun 21, 2022 21:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.