Cause of Error: Unable to get property 'fnSetData' of undefined or null reference at line 820

Cause of Error: Unable to get property 'fnSetData' of undefined or null reference at line 820

joellerjoeller Posts: 48Questions: 9Answers: 0

Hi guys I am getting the below error
Unhandled exception at line 820, column 4 in https://localhost:44306/Scripts/jquery.dataTables.js

0x800a138f - JavaScript runtime error: Unable to get property 'fnSetData' of undefined or null reference
for the function
function _fnSetCellData( oSettings, iRow, iCol, val )
{
var oCol = oSettings.aoColumns[iCol];
var oData = oSettings.aoData[iRow]._aData;

        oCol.fnSetData( oData, val );
    }

I am setting the datatable like this
$('#tblContractLines').dataTable({
"aaSorting": []
});
This dataTable was working on December 23 when I demo'ed it. The only difference is that now it has data whereas before there was none.

Answers

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    Since I could not get dataTables to work on that table, I just removed the JQuery assigning dataTables to that ttable and one other table by commenting out the lines

    //$('#tblContractLines').dataTable({
    // "aaSorting": []
    //});

    Then I just added some css styling to the table myself so I am no longer fighting with dataTables.

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    Is this a duplicate of your other discussion?

    Allan

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    No. note the difference in table names and the different resolutions.

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    If you would be able to link to the page showing the issue, I would be happy to try and debug it to see what is going wrong.

    Allan

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    Can't. Its classified as FOUO (for official use only).

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    Can you use JSFiddle or http://live.datatables.net to recreate the issue so I can attempt to debug it and offer some help then please?

    Allan

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    I've tried but was not able to duplicate issue without using razor.

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    Anyway the issue was resolved by not using dataTables and the application has been deployed to production.

This discussion has been closed.