We are trying to implement the 2015 hierarchies feature in the case entity. We are successful in setting up the hierarchy and everything appears to be working. However, when some views (both system and custom) are loaded when you go to the case entity section, we receive a generic error - "an error has occurred."
The error only occurs on some views and only occurs when the view is initially loaded. For example, I can go to the case entity which loads View A by default and there is no error. I can switch the view to View B and there is no error. However if I click on Case in the command bar to reload that screen, it attempts to show View B and returns an error. View A never returns an error and View B always returns an error when the screen reloads.
The views that return an error are a mix of system and custom views. If I take out the Hierarchy Setting and change the 1:N relationship back to Hierarchical=No, then the errors do not occur. Has anyone else encountered this?
The trace file doesn't provide us much more -
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Error Message: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source File: Not available
Line Number: Not available
Request URL: http://crmtestapp/BondCRM/_root/homepage.aspx?etc=112&layout=0&pagemode=iframe&sitemappath=CS%7cCS%7cnav_cases&viewid=%7b00000000-0000-0000-00AA-000010001028%7d&viewtype=1039&visualizationId=&visualizationPaneMode=0&visualizationType=0
Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
at Microsoft.Crm.Service.Application.Controls.CasesGridDataProvider.GetData(QueryBuilder queryBuilder)