Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If my records in rdlc is more than 65000 records it is throwing out of memory exception in mvc using .net...How to resolve this error


What I have tried:

I am calling RDLC Report from MVC, if the records are less than 65000 it is not giving any error, how to resolve this error



Thanks
Mishrutha
Posted
Updated 20-Mar-18 3:51am
Comments
Richard Deeming 20-Mar-18 9:53am    
REPOST
This seems to be exactly the same question you posted back in December:
https://www.codeproject.com/Questions/1220585/How-to-export-thousound-records-into-csv-file-or-r[^]
Divyay208 22-Mar-18 2:14am    
yes but that time also I did n't find any solution so instead of RDLC I used CSv file , but now I want to display data in RDLC then user can export data into EXCEL file

1 solution

Simple: don't try to load that much data into memory.

There's no way a user is going to look through a list of 65000 rows. Even if they could look at one row per second, it would take them over 18 hours without a break to read the report.

Find a way to filter or summarize the data, so that the user can see what they need without having to waste a whole day looking for it.
 
Share this answer
 
Comments
Divyay208 22-Mar-18 2:11am    
I am using filters to minimize the data but client exporting data into excel and he want to upload same data into their system so I have to show full data depends on their date filters
Richard Deeming 22-Mar-18 8:12am    
Then don't use Reporting Services; execute the query, and stream the results directly to a CSV file.
Divyay208 25-Mar-18 6:05am    
There were data format issues in CSV File,especially for the numbers and date fields that is why i am using reporting services
Richard Deeming 26-Mar-18 13:53pm    
It would be far simpler to fix the data format issues in the CSV export.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900