Adding one more agggregate field throws exception:"Object reference not set to an instance of an object"

2 posts, 0 answers
  1. Diyan
    Diyan avatar
    10 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2014 Link to this post

    I'm using the pivotgrid that is connected to my analytics server. What I do is add 2 row fields one column and 2 aggregate.
     It throws an "Object reference not set to an instance of an object"  every time when I one more aggregate field. It happen with every aggregate field. I saw that in the sql profiler there is no  error and all MDXQueries are executed successfully. Below you can find the stack trace of the exception and hopefully it can give you a clue what is wrong.

      at Telerik.Web.UI.PivotHelperModelManager.BuildRowPivotModel()     
         at Telerik.Web.UI.RadPivotGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)     
         at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)     
         at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)     
         at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     
         at System.Web.UI.WebControls.DataBoundControl.PerformSelect()     
         at Telerik.Web.UI.RadPivotGrid.PerformSelect()     
         at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()     
         at Telerik.Web.UI.RadPivotGrid.DataBind()     
         at Telerik.Web.UI.PivotGridFieldReorderEventArgs.ExecuteCommand(Object source)     
         at Telerik.Web.UI.RadPivotGrid.OnBubbleEvent(Object source, EventArgs args)     
         at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)     
         at Telerik.Web.UI.PivotGridItem.OnBubbleEvent(Object source, EventArgs args)     
         at Telerik.Web.UI.PivotGridItem.FireCommandEvent(String commandName, Object commandArgument)     
         at Telerik.Web.UI.RadPivotGrid.HandleFireCommand(String commandName, String commandArgument)     
         at Telerik.Web.UI.RadPivotGrid.RaisePostBackEvent(String eventArgument)     
         at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     
         at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)     
         at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Best Regards,
    Diyan Penkov
  2. Viktor Tachev
    Viktor Tachev avatar
    1440 posts

    Posted 29 Oct 2014 Link to this post

    Hello Diyan,

    I have answered your query in the other thread you have opened. I suggest we continue the conversation there.

    Additionally, please note that It is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in a shorter time.

    Viktor Tachev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top