Requested Unknown Error - Cryptic Warning Message - Resolved

Requested Unknown Error - Cryptic Warning Message - Resolved

jtlutgenjtlutgen Posts: 2Questions: 1Answers: 0
edited January 2016 in Free community support

All - 1st time poster and have been searching for a bit to figure out the answer to this problem.

A few weeks ago I found a site that had the ability to create csv to DataTables. I am currently utilizing it for a health check script and taking the outputs and making it one single page.

I quickly found out that having multiple tables per page wouldn't be all that sexy as the page would be huge. Take that one step further i was creating static pages to start with. That quickly became unmanageable - and I had to find a new solution to fix the issue. With that being said, my brother-in-law and I were able to remedy the issue and have a single page that references different hashes to pull up different tables. Problem is I am running into this little nugget of joy http://datatables.net/manual/tech-notes/4 - on windows ONLY at this point. When i run it on my mac it doesn't have any issues however windows pops up an error that states: DataTables warning: Table id=my-table - Requested unknown parameter '1' for row 0. For more information about this error, please see url referenced above. Once i hit OK the page drops the data. If I don't click OK you can see the data no issues.

The data looks like the following in the csv files:

"Name","HAEnabled","HAFailoverLevel","DrsEnabled","DrsAutomationLevel"
"Cluster","True","0","True","FullyAutomated"

Like i said i only run into this on windows on ANY browser however with mac it doesn't have issues.

Any help would be greatly appreciated!

https://jsfiddle.net/jtlutgen/duvp09ef/2/

Answers

  • jtlutgenjtlutgen Posts: 2Questions: 1Answers: 0

    Found the issue in a line of code from https://github.com/derekeder/csv-to-html-table -

    //data = data.replace(/[\r|\r\n]/g, "\n");

    This line in the csv_to_html_table java script file was causing windows to add null to row 0 and then adding data at row 1. By commenting out this line of code it rectified the error. More detail is included on the "issues" section under his github.

  • allanallan Posts: 63,259Questions: 1Answers: 10,421 Site admin

    Ouch - that's a nasty one. Thanks for posting back with your findings on this!

    Regards,
    Allan

This discussion has been closed.