Fine write range activity can be used to write a whole datatable to a excel but the question is like A1>A2>A3
Well that looks like we want to write in each cell one by one
is that so buddy
Cheers @nova001
In ExtractDataTable I have only 1 column with several rows. So, when UiPath scraping data from each URL (from URL list) I want it to store first A1,A2,A3,A4 etc. 2nd one to store at B1,B2,B3,B4 etc. and next C1,C2,C3 and so on.
AppendRange doesnt work properly:
1 First, it skips 12 rows in Excel by some reason
2 Secondly it copies data 7 times (I guess because there are 7 rows in column and it loops through ForEachRow activity adn copies it 7 times)
3 It copies it vertically, one after each other A1-7, A8-14 etc.
For this particular thing, use build data table first, then use add data column when you got the data for the first time.Again another data column for the second URL data and so on. Then use write range activity to write the entire table you build into an excel. This will work. Otherwise, you need to convert the interger to alphabet and use write range activity everytime.
I have to scrap lots of URLs/Data… So I wanted to do it in such a way when robot opens first URL from the list > scrap data > store in DataTable(AddDataColumn) > close the browser (repeat same pattern with next URL from the list)
I just want to close the browser every time after each scrap because I am afraid it will freez if it opens too many tabs.
So my question is - do you think it will be possible to do it in such way? Robot will go through say 1000 links, store data in DataTable, then > WriteRange activity to write entire table into Excel.
Could yopu please help me to put right setting for AddDataColumn? I am not sure how to write the data into DataTable.
and one more question - is the workflow is correct?
Attach browser > BuildDataTable > DataScraping (ExtractStructuredData activity - all saved in ExtractDataTable) > AddDataColumn > ExcelApplicationRange > WriteRange
I tried to do like you advised, but it doesnt work, I need more detailed explanation if possible.
I have attached my workflow, I would appreciate if you can edit it correctly.Nova-DataScrap1.xaml (10.4 KB)
I added 2nd loop and added 7th step as well. It gives me error - “Cannot find Column 0”.
I guess it’s because I emptied DataTable columns. What did I do wrong? Nova-DataScrap2.xaml (19.4 KB)
Why there is no data? Browser is attached, Data Scraping activity is working as well. It stores it as an output to ExtractDataTable. I tried to replace it with variable for DataTable - dataBuild, but this time it gives me different error, this time for Add Data Column!?
Guys, can anyone help me with this process? cant figure it out for 5 days already!!!
if someone can send corrected completed workflow, it would be much appreciated.
Databuild is the one which you are trying to fill the data from web datatable. Let it be ExtractedDataTable and try to print the rows of data from the datatable you are extracting.
Message box gives me - 8 (I guess its 8 rows of data in the column) - so it means data is actually get scraped into ExtractDataTable. Does it get loaded into dataBuild automatically from ExtractDataTable? (its a variable for output in BuildDataTable activitty)