I am using a read-only grid to show data for reports. I need to export the data to excel but the grid has more than 50 columns. I have already tried default export to excel feature and a!exportDataStoreEntityToExcel() function but none of these worked. FYI:
Is there any way I can export the data to excel?
Discussion posts and replies are publicly visible
Hi yashikas77,
If you face heap memory issues as suggested in other replies, then as a workaround you can use following approach.
1. Using 'Export Data Store Entity to Excel' export first 50 columns.
2. Use the above document again in to export the next 50 columns. You can repeat this step until it won't covers all the columns.
3. In the step 2 make sure starting cell should be the (max column from previous output + 1)
4. Also, in step 2 you can export in a new tab each time. Keep a unique identifier among the tabs for business to create a VLOOKUP to navigate from one tab to another.
I tried this approach, but it is creating new version of same document instead of updating, and as result i am getting columns after 50 columns only. and first 50 columns are blank.
Did you find any resolution as we are also facing issue to extract large volume and 200 columns?
Hi ayushk0002 & piyusha6151,
I hope you are using next sheet in the excel to export next 50 columns. So you need a sheet for a batch of 50 columns. For example you have 135 columns in total to export. It should be as follows:
Sheet 1: Column 1 to Column 50
Sheet 2: Column 51 to Column 100
Sheet 3: Rest all the columns.
Let me know if this does not work or any further confusion.
it seems to be truncating data for previouly populated columns when going for next iteration i.e. 51-100
Are you trying column 51 to column 100 in a new sheet or in the same sheet where you have populated column 1 to column 50?