Datatables 2.1.7 - Export javascript error with very large dataset

Datatables 2.1.7 - Export javascript error with very large dataset

pfeelypfeely Posts: 4Questions: 0Answers: 0
edited October 3 in Free community support

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

  • pfeelypfeely Posts: 4Questions: 0Answers: 0

    Debug code from a smaller sample
    (The large one fails to upload)

    avusef

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    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

  • pfeelypfeely Posts: 4Questions: 0Answers: 0

    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

  • pfeelypfeely Posts: 4Questions: 0Answers: 0

    I've cleared the js and recompiled and its working now - something strange with my local dev there

    Thanks

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    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

Sign In or Register to comment.