DataTables warning (table id = 'myTable'): Requested unknown parameter '1'

DataTables warning (table id = 'myTable'): Requested unknown parameter '1'

autodafeautodafe Posts: 16Questions: 0Answers: 0
edited February 2012 in General
I have a HTML table which is popoluated with data from an OLAP Cube. So far so good...
The table has and tags.
If I use the simple initialization example, ( somthing like $('#myTable').dataTable(); ) I alway s get the same warning...

DataTables warning (table id = 'myTable'): Requested unknown parameter '1' from the data source for row 0

on the page there are other tables (simple html tables, not datatables) and some charts using HighCharts...

what could be the cause? this is getting me mad...

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Can you run your table through the debugger and give us the debug code please: http://debug.datatables.net .

    Allan
  • autodafeautodafe Posts: 16Questions: 0Answers: 0
    Hi Allan

    my debug doce is: acixay

    thanks for looking into it....all my other datatables work perfectly
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Your first row in the TBODY has a colspan of 10 and the text "Ricavi" in it - DataTables does not support colspan in the TBODY - hence the problem. Just remove that row and it should work.

    Allan
  • autodafeautodafe Posts: 16Questions: 0Answers: 0
    tried removing the "colspan" attribut, tried removing the row (but i need it)
    same problem


    http://debug.datatables.net/ohikoz
  • autodafeautodafe Posts: 16Questions: 0Answers: 0
    I tried removing ALL colspans from the tbody, but still get the same error...
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    And did you put in cells for the ones that you had effectively removed - this equation must be true for DataTables to work:

    > rows x columns === cells

    If that isn't true, you will get an error such as the one you are seeing.

    Allan
This discussion has been closed.