Title: Invalid Data Import
Last modified: May 24, 2017

---

# Invalid Data Import

 *  Resolved [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/invalid-data-import/)
 * Hello.
 * First of all, I would like to thank you for this incredible plugin.
    I would 
   like to ask for help, I have an html page coded to have a table so I am trying
   to import that page into tablepress but I always encounter with an error Invalid
   Data. Would you kindly guide me and point me toward the right direction so I 
   can import the html page into tablepress successfully without the error? Thanks
   again

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/invalid-data-import/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/invalid-data-import/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9163604)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * It’s hard to tell what’s wrong here without seeing that page. It might for example
   be possible that the HTML code for the table is invalid.
    Can you please post
   a link to the page with the table where this problem happens, so that I can take
   a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9165881)
 * Thanks for your reply. I would like to share the link but unfortunately its develop
   for in house use which required intranet connection in order to access it. Would
   it be fine if I share directly the code of the page where the table that I would
   like to import to tablepress?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9167007)
 * Hi,
 * yes, that should work. Can you email it? My address is in the main plugin file“
   tablepress.php”.
 * Just to be sure: The WordPress instance is in that same intranet, i.e. it can
   access that HTML page?
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9169474)
 * Hello Mr.Tobias
 * I already sent you an email. Kindly please check it.
 * Thank You.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9170219)
 * Hi,
 * thanks! The output of that script would probably have been better, but I think
   I might have found a possible cause: The table seems to be using `colspan`, and
   if I remember correctly, the importer does not understand that.
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9175052)
 * Thanks for the reply Mr. Tobias. Yes I know the output could be better but I 
   am not really a good programmer cause I am still new to this coding worl. Anyway
   I am gonna try remove colspan and gonna try import the table to tablepress. Thanks
   again Mr. Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9175185)
 * Unfortunately Mr Tobias, eventhough after removing colspan I still encounter 
   with the error. What kind of data type that is allowed to be imported to tablepress
   Mr.Tobias?
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9176623)
 * Hi,
 * can you then maybe email me the actual table output HTML code (i.e. the resulting`
   <table> ... </table>` HTML that your script now generates?
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9178259)
 * Good Dar Mr. Tobias. I already sent an email to you. Kindly check it. Thank you
   so much for your help Mr. Tobias
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9178295)
 * Hi,
 * thanks! I have received the new file and already ran some checks on it. From 
   what I can see, the HTML syntax is correct, expect for one small issue directly
   after the header row (a `<tr><tr>` that should `</tr><tr>`). However that is 
   not the problem.
 * Instead, it seems that the Regular Expression that TablePress uses to extract
   the HTML code for the table from the file (which contains more HTML code than
   just the table) fails here. This might be caused by the size of the table, but
   I’m not sure. I’m afraid that I’ll have to do some more testing here, so that
   I can hopefully come up with a better Regular Expression. As I’m not an expert
   with those, this might however take a bit :-/
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9178802)
 * Hello Mr.Tobias
 * Thank you so much for your effort in helping me trying to resolve this problem.
   I can only hope that you come up with the solution.
 * Regards.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9179652)
 * Hi,
 * sure, no problem!
 * Now, just out of interest: Do you (at the moment) just want to import this table
   into TablePress once?
    (Because I could then try to convert it to a CSV file,
   which you can import. That way, you would not have to wait until I can fix the
   actual cause in the HTML import.) Or do you, at this time, want to import several
   tables from a HTML file?
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9181752)
 * Hi Mr.Tobias
    Unfortunately I need to import several table not just only once
   but whenever the user fill in the data through a form and updated the table. 
   I have also consider the option to convert the table into csv then only import
   it through using tablepress but given the circumstances, it is not an ideal solution
   for me now. Currently I am studying DataTables library in hoping I can find an
   alternative for my usage.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9183436)
 * Hi,
 * ok, I see. I will then intensify my research on fixing the HTML import.
    Unfortunately
   though, I can’t make promises yet, and I can’t give an estimate on when this 
   will work, as I’m very busy at the moment 🙁 Sorry for not having better news
   yet.
 * Regards,
    Tobias
 *  Thread Starter [azaru3l](https://wordpress.org/support/users/azaru3l/)
 * (@azaru3l)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/#post-9185572)
 * Hello Mr. Tobias
    I hope you have a good day. Take your time Mr.Tobias. Just 
   knowing that you put so much effort in trying to help me already I can’t thank
   you enough. I understand that you doing this for free. Once again, thank you 
   so much for this amazing plugin as this has help people like me who have limited
   knowledge on programming to create a beautiful table in our wordpress page.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/invalid-data-import/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/invalid-data-import/page/2/?output_format=md)

The topic ‘Invalid Data Import’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 20 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/invalid-data-import/page/2/#post-9202470)
 * Status: resolved