Datatables 2.1.7 - Export javascript error with very large dataset
Datatables 2.1.7 - Export javascript error with very large dataset
Link to test case:
Note that the url is not public
Debugger code (debug.datatables.net):
Unclear if the debugger tool only uploads the configuration, or actually uploads all the data
It appears to be uploading a very large dataset, I will update the post if the upload finishes.
Error messages shown:
Uncaught RangeError: too many arguments provided for a function call
This appears to be from observations.js:22037
apply() cannot take more than 65535 arguments
// Initial data
if ( data ) {
this.push.apply(this, data);
}
Description of problem:
This might not be fixable, as its an unusually large table to be loading via javascript.
However the html pages render correctly, the error is when the Export CSV or Export Excel function is used
Other similar datasets that are a bit smaller are working.
observation_table
Data source: Ajax
Processing mode: Client-side
Draws: 2
Columns: 47
Rows - total: 12601
Rows - after search: 12601
Display start: 0
Display length: 10
Replies
Debug code from a smaller sample
(The large one fails to upload)
avusef
Can you link to a test case showing the issue please? What you are seeing was an error in earlier versions of the v2 series, that it has since need addressed. Indeed as you will see in the code here it doesn't match the code you have shown. My guess is that something on your page is loading an old version of DataTables somewhere.
Allan
Thanks - its definitely 2.1.7 in the node_modules source (And also reported by the debugger)
So something may have gone awry in the webpack compile
I'll keep digging
I've cleared the js and recompiled and its working now - something strange with my local dev there
Thanks
Thanks for the update - good to hear you got it working. Probably a package was including an old version of DataTables in addition to the new one.
Allan