Telerik Reporting Cross tab report - "MaxDepth of 64 has been exceeded" while adding more columns to row group

1 Answer 440 Views
CrossTab Report Designer - Web
Aneesh
Top achievements
Rank 1
Aneesh asked on 30 May 2023, 12:37 AM

We have a Telerik HTML5  report designer integrated in a .net 4.8 MVC application . Our requirement is to design cross tab reports. Data is populated from  stored procedures.  Around 40 - 45 columns need to be added in the row group of cross tab.  The issue is, after adding 30 columns, getting the below error message. Also it does not allow to save report.

Could not save 'Reportxxx.trdp'. An error has occurred. The reader's MaxDepth of 64 has been exceeded.

Any option to set max depth in .net 4.8?

Screenshot given below.

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 01 Jun 2023, 12:34 PM

Hi Aneesh,

This error is most likely thrown by the Newtonsoft.Json package as we use it for report serialization (see the Getting "The reader's MaxDepth of 64 has been exceeded" error Stack Overflow thread for reference).

In .NET Core applications, setting the MaxDepth can be done where the services are configured (see the How can I increase the JSON deserialization MaxDepth limit in ASP.NET Core Stack Overflow thread).

However, I am not sure how the same can be done in .NET Framework applications. Perhaps an approach analogical to the one described in the Setting Library Parameter Globally Stack Overflow thread could work.

I hope this helps.

Best Regards,
Momchil
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
CrossTab Report Designer - Web
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or