Unable To find identifier

Unable To find identifier

MaikelMaikel Posts: 75Questions: 18Answers: 1
edited November 2015 in Free community support

hi i have the table config below (small copy paste), and on every select i get the following error:
uncaught exception: Unable to find row identifier For more information, please refer to https://datatables.net/tn/14

i know that there is a link to the docu but its not really helping, as i have set the id on the tr tag

Any clue why datatables can not find it?

<table id='table_query' class='dataTable'><thead>
<tr><th>branch</th><th>suite</th><th>testCase</th><th>edit</th><th>lastChange</th><th>status</th><th>lastPass</th><th>lastFail</th><th>owner</th><th>reason</th><th>action</th><th>passC</th><th>failC</th><th>regLevel</th><th>constraints</th><th>regIncl</th></tr></thead>
<tbody>
<tr id="row_4097473" bgcolor="#ffffff"><td>_0_0</td><td><a class=def_a href='/regression-debug2/index_ng.php?cmd=suiteMan&amp;branch_id=&amp;branch=TiMOS_0_0&amp;ownerTest=&amp;suite=subscr_mgt_express'>subscr_mgt_express</a></td><td><a class=def_a href='/regression-debug2/index_ng.php?cmd=testCaseMan&amp;branch_id=4&amp;tasId=4097473&amp;branch=TiMOS_0_0&amp;testCase=subscr_mgt_express-basic1&amp;suite=subscr_mgt_express'>subscr_mgt_express-basic1</a></td><td>00:25:20</td><td>2015-11-16</td><td style='font-size:7pt; color:#dddddd; text-align:justify; font-weight:bold; background-color:#ff0000'>FAILED-3</td><td><a target=_blank class=grey_a href='http://172.21.48.120/results/2015/Month_11/Nov_15/22:50:12.sr-test-infra/'>I4623</a></td><td><a target=_blank class=red_a href='http://172.21.49.229/results/2015/Month_11/Nov_14/10:48:26.swtest-timetra/'>I4621</a></td><td><a class=blue_a href='/regression-debug2/index_ng.php?cmd=ownerInfo&amp;ownerTest=mpunie&amp;branch='>mpunie</a></td><td class=bl_sm4_img1><input type=hidden name=reason value='' /></td><td><input type=hidden name=action value='' /></td><td class=bl_sm4_img1_green>4771</td><td class=bl_sm4_img1_red >1084</td><td>express</td><td>{7450Support false} {ascotSupport true}</td><td>true</td></tr>

<tr id="row_4383484" bgcolor="#ffffff"><td>_11_0_current</td><td><a class=def_a href='/regression-debug2/index_ng.php?cmd=suiteMan&amp;branch_id=&amp;branch=TiMOS_11_0_current&amp;ownerTest=&amp;suite=subscr_mgt_express'>subscr_mgt_express</a></td><td><a class=def_a href='/regression-debug2/index_ng.php?cmd=testCaseMan&amp;branch_id=39&amp;tasId=4383484&amp;branch=TiMOS_11_0_current&amp;testCase=subscr_mgt_express-basic1&amp;suite=subscr_mgt_express'>subscr_mgt_express-basic1</a></td><td>00:21:54</td><td>2015-11-15</td><td style='font-size:7pt; color:#ff0000; text-align:justify; font-weight:normal;'>FAILED-4</td><td><a target=_blank class=grey_a href='http://172.21.48.120/results/2015/Month_11/Nov_15/03:41:57.sr-test-infra/'>S945</a></td><td><a target=_blank class=red_a href='http://172.21.49.164/results/2014/Month_10/Oct_27/10:56:54.regressiondb/'>S643</a></td><td><a class=blue_a href='/regression-debug2/index_ng.php?cmd=ownerInfo&amp;ownerTest=mpunie&amp;branch='>mpunie</a></td><td class=bl_sm4_img1><input type=hidden name=reason value='' /></td><td><input type=hidden name=action value='' /></td><td class=bl_sm4_img1_green>2114</td><td class=bl_sm4_img1_red >859</td><td>express</td><td>{7450Support false} {ascotSupport true}</td><td>true</td></tr>

<tr id="row_4387594" bgcolor="#ffffff">

This question has an accepted answers - jump to answer

Answers

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

    Can you give us a link to the page so we can take a look please.

    Allan

  • MaikelMaikel Posts: 75Questions: 18Answers: 1

    its an internal page, we are evaluating datatables and the editor to be used in our products

    but here is a link to the html source, as i use dom sourced data
    http://cereal.sinners.be/dt.html

    and below is the code how initialize the datatables and the editor:

                editor = new $.fn.dataTable.Editor( {
                    table: "#table_query",
                    fields: [
                        {
                            label: "Owner:",
                            name: "owner"
                        }, {
                            label: "Reason:",
                            name: "reason"
                        }, {
                            label: "Action:",
                            name: "action"
                        }
                    ]
                } );
                $("#table_query").DataTable( {
                    jQueryUI: true,
                    dom: '<"H"BRflr><t><"F"pi><"clear"><"clear">',
                    buttons: [ {
                            extend: 'copy',
                            preferHtml: true,
                        },
                        {
                            extend: 'excel',
                        },
                        {
                            extend: 'pdf',
                        },
                        {
                            extend: 'edit',
                            editor: editor
                        },
                        {
                            extend: 'remove',
                            editor: editor
                        } ],
    
                    searching: true,
                    ordering: true,
                    select: true,
                    info: true,
                    autoWidth: true,
                    stateSave: false,
                    stateDuration: 60 * 60 * 12,
                    paging: true,
                    lengthMenu: [[5, 10, 25, 40, 50, 100, 200, -1], [5, 10, 25, 40, 50, 100, 200, "All"]],
                    pageLength: -1,
                    bProcessing: true,
                    sPaginationType: "full_numbers"
                } );
    
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Could you confirm what version of DataTables you are using please? If not 1.10.10, could you update to that.

    Also, if possible can you use the DataTables debugger on your page and let me know the debug code.

    Finally, if you run:

    $("#table_query").DataTable().rows().ids()
    

    on your browser's console, what do you get?

    Regards,
    Allan

  • MaikelMaikel Posts: 75Questions: 18Answers: 1

    indeed it seems to be there was a version mismatch

    thanks for the help

This discussion has been closed.