I want to read the excel in chunks and below is the workflow. I have created a while loop to loop in the records in chunks, say 5 records a time. I have used Import Row to add it to another data table, but the table has imported nothing to it. How could this be fixed?
Let us take you have a datatable dt1 and you to import rows to datatable dt2
Before using Import row method just assign
dt2=dt1.Clone()
If you want to import rows then the schema of both datatables should be same.
If you use clone it will copy only headers from dt1 to dt2. now the schema will be same for both datatables.
I have an excel of 20 records and I want to read the data in chunks, say 5 records at a time. I want to read each set and add them to another data table. The current workflow add only the last 5 records to the new data table. I want all 20 records to be inserted to another data table. I hope you understood the scenario.