Completed
Last Updated: 04 Aug 2022 13:35 by ADMIN
Release R2 2022 SP1 (Latest Internal Build)
Catalin
Created on: 10 Mar 2022 11:59
Type: Bug Report
4
System.ArgumentException: The JSON value of length n is too large and not supported.

Trying to preview a report with a lot of data in the report viewer in an ASP.NET Core application results in the error:

"System.ArgumentException: The JSON value of length n is too large and not supported."

3 comments
ADMIN
Dimitar
Posted on: 20 Apr 2022 11:02

Hello Mario,

I am not sure which report designer you have used to preview the report but I will assume that you mean the Standalone Report Designer application since it is the most widely used of the available designers. The Standalone Report Designer is a .NET Framework application. In .NET Framework we do not use the System.Text.Json, thus this limitation is not present and you do not see the error when you preview the same report in the designer application.

If you wish to work around this problem, you can create a reporting rest service in .NET Framework 4.5, for example, and you can use this service with the Blazor report viewer.

The less reliable option is the workaround from the System.ArgumentException The JSON value of length n is too large and not supported KB article but it will not work 100% of the time. What this KB suggests essentially is to disable the search metadata and thus lower the total data so that the report does not exceed the limit but even without the search metadata, the data could still be too much so it depends on the report.

I hope that at least one of the two workarounds will help.

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Mario
Posted on: 15 Apr 2022 19:49

Good Afternoon,

I have the same problem in a blazor report but in the report designer preview does not happen.

Is there an alternative to :

 

https://github.com/dotnet/runtime/issues/39953

Best Regards

MArio

 

ADMIN
Dimitar
Posted on: 07 Apr 2022 10:54

Hello Catalin,

In .NET Core, we use the System.Text.Json serializer which is limited to 125MB of data, thus large reports that exceed that limit will encounter this issue.

For more information, please have a look at The JSON value of length n is too large and not supported #2 #39953 Github thread.

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.