ag-grid / ag-grid

The best JavaScript Data Table for building Enterprise Applications. Supports React / Angular / Vue / Plain JavaScript.
http://www.ag-grid.com
Other
12.07k stars 1.81k forks source link

"RangeError: Invalid string length" when exporting as CSV with > 1M of rows #8070

Open bartekgruszka opened 3 weeks ago

bartekgruszka commented 3 weeks ago

I'm submitting a ... (check one with "x")

[x] bug report => see 'Providing a Reproducible Scenario'
[] feature request => do not use Github for feature requests, see 'Customers of AG Grid'
[] support request => see 'Requesting Community Support'

I'm getting the following error when trying to export > 1M of rows x 45 columns

Uncaught RangeError: Invalid string length
    at t.onNewBodyRowColumn (ag-grid-enterprise.cjs.js:5983:29)
    at eval (ag-grid-enterprise.cjs.js:6191:28)
    at Array.forEach (<anonymous>)
    at t.processRow (ag-grid-enterprise.cjs.js:6190:25)
    at r.recursivelyWalkNodesAndCallback (ag-grid-community.cjs.js:44781:13)
    at r.forEachNodeAfterFilterAndSort (ag-grid-community.cjs.js:44765:14)
    at eval (ag-grid-enterprise.cjs.js:6300:34)
    at eval (ag-grid-community.cjs.js:912:79)
    at Array.reduce (<anonymous>)
    at eval (ag-grid-community.cjs.js:912:40)
    at t.serialize (ag-grid-enterprise.cjs.js:6155:16)
    at e.getMergedParamsAndData (ag-grid-enterprise.cjs.js:5753:46)
    at t.export (ag-grid-enterprise.cjs.js:6057:23)
    at t.exportDataAsCsv (ag-grid-enterprise.cjs.js:6066:21)
    at e.exportDataAsCsv (ag-grid-community.cjs.js:30958:29)

Is there anything we can do about it?

AG-Zoheil commented 2 weeks ago

Hi

Thank you for reporting this.

We'd be happy to look into this, but the most efficient way for us to do so would be for you to provide a live example reproducing the issue.

Please send us a live plunker sample which shows the issue. You can use one of the examples from our website as a starting point. Do let us know if you need further guidance on this.

We're looking forward to your response.

Kind regards, Zoheil