dataSrc return dt error but still work correctly
dataSrc return dt error but still work correctly
when i use dataSrc
it work like i coded on how to show the data in the table, but a dt error pop up saying something like custom 1 An error has been reported by DataTables: DataTables warning: table id=DataTables_Table_2 - Requested unknown parameter '30' for row 0, column 32. For more information about this error, please see http://datatables.net/tn/4
But if i dont use dataSrc its normal, theres nothing wrong with how the dataSrc show the data but the error is annoying because i set an alert for that so it trigger everytime anyway to disable it jsut for this datatable or any other way ? i can provide my dataSrc code if needed
This question has an accepted answers - jump to answer
Answers
Did you follow the troubleshooting steps at the URL given?
http://datatables.net/tn/4
Basically it is saying that you have a
columns.data
setting of30
for column 32 but the data doesn't have this object, ie,data: "30"
.Debug your
ajax.dataSrc
to find out why this is missing. If you need help with this then please post a link to your page or a test case replicating the issue so we can help debug.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Oh i didnt realize it explain how to debug it there, sorry its my fault not reading document fully, its fixed already many thanks