Hi,
I have a ReportViewer on my XAML page:
<tr:ReportViewer x:Name="LevelAccuracyReportViewer"
ReportSource="{Binding LevelAccuracyReportSource}"
Margin="520,360,20,20">
</tr:ReportViewer>
It works ok the first time the page is displayed, but if I update the Source a 2nd time:
LevelAccuracyReportSource = new InstanceReportSource
{
ReportDocument = levelAccuracyReportDefinition
};
I get an "Object Reference not set to instance error", but then it works.
If I update the source again, I get the error message twice, then it works.
Each update causes an additional message to be displayed
I'm using the 2025 Q2 release of Telerik Reporting
Hello Eric,
The observed behavior looks unusual.
Could you please let me know how exactly you are updating the report source?
Additionally, if you downgrade to the previous 19.0.25.313 version, does the issue still occur?
To further examine the cause of the errors, it would also be very helpful if you could attach a trace listener to the application and provide the generated log file for investigation.
If you are worried about confidentiality, you can open a private support ticket, where we can discuss the issue.
Thank you, and I am looking forward to your reply!
Regards,
Petar
Progress Telerik
I reverted back to the previous version and still got the error.
Here is the complete method that updates the report source (there is an an API call that gets the list of levelAccuracyReport items)
In the applications output, I get the error(s) after the LevelAccuracyReportSource is set but before I see the ProcessReport log start
private void SetKegLevelAccuracy(IEnumerable<LevelAccuracyReportItem> levelAccuracyReportItems) { DashboardLevelAccuracyReportDefinition levelAccuracyReportDefinition = new DashboardLevelAccuracyReportDefinition { objectDataSource = { DataSource = levelAccuracyReportItems }, }; LevelAccuracyReportSource = new InstanceReportSource { ReportDocument = levelAccuracyReportDefinition }; }