Nevron Forum

NChart Rendering Failed

https://www.nevron.com/Forum/Topic4477.aspx

By Sasnouski Pavel - Monday, November 15, 2010

Hi All,

We are getting the following message within chart area if dataset does not return any records:
NChart Rendering Failed. Exception was: Object reference not set to an instance of a object.

Is there a way to avoid this ?
Thanks a lot.
By Nevron Support - Tuesday, November 16, 2010

Hi Pavel,

Just tested the control with an empty data set and it was working OK. Can you post the example configuration (chart type + data configuration) that generates the error. If we can replicate the bug it will be fixed within a week.

By Sasnouski Pavel - Tuesday, November 16, 2010

Hi
thanks for your reply.

well...i can simply reproduce this.
In VS 2005 Reporting Service environment I create new report , put nevron chart control on the form and assign it with dataset, drop value & category field. The dataset does not return any record. Then I can see the error while previewing in VS as well as in report viewer on web.
Attaching rdl file (renamed as xml). Hope it can help.
By Sasnouski Pavel - Thursday, November 18, 2010

Hi,
I can even reproduce this within sample reports i have installed.
Take 'ChartTypes_Pie.rdl' from 'NRSChartExamples' sample project.
Add 'where 1 = 0' to query to make it look as 'select * from GrossProfitPerContinent where 1 = 0'
Go to Preview.
I can see "NChart Rendering Failed..." exception.

Is anybody able to reproduce this ?

Thanks.
By Sasnouski Pavel - Friday, November 19, 2010

It looks as Nevron Charts for Reporting Services 2005 issue only.
RS 2008 handles empty datasets correctly.

Guys, please confirm anyone else can reproduce this.
Thanks
By Nevron Support - Friday, November 19, 2010

Hello Pavel,

We can confirm that the bug has been reproduced and it is only in present in the SSRS 2005 version. We are now working to release a service pack for SSRS 2005 which will address this issue as well as several other bugs.
By Sasnouski Pavel - Tuesday, November 30, 2010

Hi, could you please let us know when the fix is expected ?