Export to CSV error: Maximum call stack size exceeded

Export to CSV error: Maximum call stack size exceeded

DesconhecidoDesconhecido Posts: 11Questions: 5Answers: 0
edited February 2016 in Free community support

Hello!

I'm getting this error on the console of Chrome while trying to HTML5 CSV export a big dataset (6000 rows, 14 columns):

Uncaught RangeError: Maximum call stack size exceeded t @ jquery.dataTables.min.js:94 t.iterator @ jquery.dataTables.min.js:96 (anonymous function) @ jquery.dataTables.min.js:123 (anonymous function) @ jquery.dataTables.min.js:98 (anonymous function) @ dataTables.buttons.min.js:34 (anonymous function) @ jquery.dataTables.min.js:98 B @ buttons.html5.min.js:7 l.ext.buttons.csvHtml5.action @ buttons.html5.min.js:14 (anonymous function) @ dataTables.buttons.min.js:14 n.event.dispatch @ jquery.js:4430

The export works fine on Firefox, but also fails on IE10.
Already tried using the Flash export version but that also fails (no errors but no export).

If I filter the table using the top right corner search and decrease the amount of rows to under 1000, the export works again, but removing the filter brings the error back again.

So I assume since filter can loop thru the whole table without crashing, so should the export to CSV feature. Is this a known bug? Are there any workarounds I can apply other then reducing the dataset?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    Answer ✓

    Per the forum rules, please link to a test case showing the issue.

    It might also be worth trying the nightly versions if you haven't already.

    Allan

  • DesconhecidoDesconhecido Posts: 11Questions: 5Answers: 0
    edited February 2016

    allan, I updated just the jquery.dataTables.min.js and it fixed the problem.

    Sorry for not providing an example, but its a heavy dataset (12mb json file)

This discussion has been closed.