Question

Photo of Jeremy Turgeon

0

Rock Update > Metric Chart Dashboard Widget pages unavailable

After updating from v13 > 16 this last week, we've run into an "Object reference not set to an instance of an object." error on every page that has the following block "MetricChartDashboardWidget". Here's the full stack trace.


 at Rock.Web.UI.RockPage.GetCurrentContext(EntityTypeCache entity, Dictionary`2 keyEntityDictionary) in \Rock\Web\UI\RockPage.cs:line 3116

   at Rock.Reporting.Dashboard.MetricChartDashboardWidget.GetPrimaryMetricPartitionEntityIdFromContext() in \Rock\Reporting\Dashboard\MetricChartDashboardWidget.cs:line 634

   at Rock.Reporting.Dashboard.MetricChartDashboardWidget.GetSelectedPartitionEntityIdentifiers() in \Rock\Reporting\Dashboard\MetricChartDashboardWidget.cs:line 555

   at RockWeb.Blocks.Reporting.Dashboard.LineChartDashboardWidget.OnLoadChart()

   at Rock.Reporting.Dashboard.MetricChartDashboardWidget.LoadChart() in \Rock\Reporting\Dashboard\MetricChartDashboardWidget.cs:line 769

   at Rock.Reporting.Dashboard.MetricChartDashboardWidget.OnLoad(EventArgs e) in \Rock\Reporting\Dashboard\MetricChartDashboardWidget.cs:line 182

   at Rock.Web.RockControlAdapter.OnLoad(EventArgs e) in \Rock\Web\RockControlAdapter.cs:line 71

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


  • Photo of Josh Sargent

    1

    I ran in to this same problem last week. Rob Howell at Bema helped me out. There is a bug in the block where if the block is set to "Get from page context" it throws an error. Here is the info on github: https://github.com/SparkDevNetwork/Rock/issues/5834. If you can get to the page in Page Views, you can edit the block. My instance was throwing the error even on Page Views so I had to use SQL to remove the block from the page. Then I went back and added the block back choosing Select Partition(s) on the block settings.