I am having an issue extracting table data from a website. The issue being they have a malformed html table which is throwing off UiPath Table Extract activity and cannot process any data.
Here is an example of how the tags and generic data for the problem html table.
Because of the rows being nested inside the <thead> the activity fails to preform properly.
Does anyone know a way to work around this issue so I can extract the data into a datatable?
Try setting the THEAD as your source object, rather than the TABLE.
This is what seemed to work. Though it requires more working around the awful website structure.
I had to add a single column only just to get the initial activity to not throw an error. Then I had to manually change to the target to the element.
Are you using the table extraction wizard for scraping this html table? Which version of Studio and UIAutomation library are you using?
Using the same sample html table you provided, I was able to extract to datatable variable. It had column names as Column0, Column1 and Column2 though. but it did read ColHeader1 as a datarow and we can easily loop over the rows to output it as needed.
The html I provided is a generic example of a site I am trying to scrape data from and am aware it is malformed. My problem is that I can’t control their site or html structure but regardless I still need the data.
I see you are using firefox, could you try chrome and see if you get the same results. What version of dependency packages of UiPath.System.Activities and UiPath.UIAutomation.Activities are you using.