row index remove() column.adjust().draw() error Cannot read property '_aData' of undefined
row index remove() column.adjust().draw() error Cannot read property '_aData' of undefined

Trying to remove row but error.
Uncaught TypeError: Cannot read property '_aData' of undefined
at datatables.min.js:142
at Function.map (jquery.min.js:2)
at datatables.min.js:142
at tb (datatables.min.js:140)
at wc (datatables.min.js:142)
at D.<anonymous> (datatables.min.js:143)
at D.iterator (datatables.min.js:129)
at D.<anonymous> (datatables.min.js:143)
at D.rows (datatables.min.js:132)
at populateData (monthly:1119)
window.datatable.rows(function (idx, data, node) { <--------- error '_aData' highlighted this line in browser sources
if (parseFloat(data.Amount) < 0) {
var row = window.datatable.row(idx);
row.remove();
window.datatable.columns.adjust().draw();
}
return false;
});
This question has an accepted answers - jump to answer
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin