I have .xlsb file with 50k records, read range workbook activity is not supporting so im using excel read range activity which is taking so much time.( more than 10min )
What would be the other possibilities to make it read faster
Please help me with this.
@raja.arslankhan i need to get a data variable from other excel and compare it with all the records in this excel. So may not be possible to read in chunks.
By any chance, can i use oledb here ? If so, please guide me.
If you have to look for a particular value in the excel data which is huge, i would recommend not reading it in first place and directly use Find/Replace Value & Vlookup activities in excel itself.
@praveena.nadi i understood your problem but when you will read through chunks then you will also merge it in another table. In the end you will get proper whole datatable
Can you please tell what kind of manipulations or search you are trying may be depending on that we can suggest any alternative approach
Also we can use excel as db and can use where conditions to get only required data or check only require ddtaa…you need to install drivers and then can get connection strings from here
I have a CSV file with 25k records where im trying to get debit amount of each invoice number and search for the same invoice number respective debit amount in .xlsb file with 50k records, if match found, i need to update status in csv file.
this is the overall project.
here i am able to read csv file using read csv activity with very less time even with 25k records, but .xlsb file with 50k records using excel read range activity is taking lot of time (more than an hour)
Since i need to compare each and every record from csv file with .xlsb file, i want to make it as fast as possible. Please guide me with this briefly.
Did you try reading only the invoice number column and invoice amount column separately ? even that is taking time?
if not read them separately and then we can merge together
lookup is an option but not sure for 25k records in loop it might take time…so try reading individual columns and then we can merge or use row index to find the total and invoice number as needed
In addition to this, As i am looping through each row using for each row in datatable, How to update status on excel sheet ?
because, if match found, I need to write status to the “status” column in csv excel file.
In this current project, I need to do group by invoice number and sum of debit amount column and then i have to compare it with other excel sheet’s debit amount.
input:
Excel1
invoice number Debit status
12345 500rs
12345 100rs
12345 400rs
Excel 2
invoice number Debit
12345 1000rs
I need to do the sum of all debit amounts for invoice number 12345 in excel1, then search for same invoice number 12345 in excel2 and compare respective debit amount. if match found, then update status on excel1.
please help me with
how to do group by and sum and then compare with second excel file
Instead of using the Excel Read Range activity, you can use the Excel Application Scope activity. This activity provides a more efficient way of working with Excel files as it utilizes the Excel application directly.
If the Excel file has the “Read-Only Recommended” option enabled, it can significantly slow down the reading process.
@Anil_G , for updating the status in csv file, i cant use write cell activity since csv file can not be read using read range activity.
So what i can do for updating status in csv file ?
If i have to use write csv activity, then please guide me how to use this
Write cell can only be used inside excel process scope, but here im not reading csv file with excel process scope, so may not be possible to use write cell activity.
In other way,
Im able to update status on status row in datatable but
Im not sure how to use write csv. Do i need to use inside loop so that it gets updated for every row from datatable or once datatable for loop is done, i should then write back to csv ? Please guide me with this.
If possible, with code.