Requested unknown parameter 'id' for row 987

Requested unknown parameter 'id' for row 987

fujyhluofujyhluo Posts: 2Questions: 1Answers: 0

Hi,

I got this message. I checked the FAQ. I still NOT able to fix it. Can u give me some help.... thx
DataTables warning: table id=mytable2 - Requested unknown parameter 'id' for row 987. For more information about this error, please see http://datatables.net/tn/4

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    From http://datatables.net/tn/4:

    Resolution

    The key to resolving this error, is to ensure that DataTables has all of the data that is required. Specifically, check the following:

    Did you check the points itemised after "check the following:"?

  • fujyhluofujyhluo Posts: 2Questions: 1Answers: 0

    hi,

    Thank you very much try to help me. I found out my problem.
    I was return JSON as following format.
    {"data":[{"id":1,
    "status_date":"2014-11-29 00:00:00",
    "hostname":"srv01.abc.com",
    "short_hostname":"xcat",
    "os_ver":"CentOS",
    "description":"",
    "phy_vm":"Physical",
    "cluster":"aaa"
    }]}

    That is NOT right format it is looking for. The right format should be
    {"id":1,
    "status_date":"2014-11-29 00:00:00",
    "hostname":"srv01.abc.com",
    "short_hostname":"xcat",
    "os_ver":"CentOS",
    "description":"",
    "phy_vm":"Physical",
    "cluster":"aaa"
    }

This discussion has been closed.