I need to merge data from excel files which are nearly 5000+ files into a single excel file. The data in each file is not that much huge. I am currently looping over a list of files, retrieving the information and merging data using merge data table activity, but this whole operation is taking a lotttt of time which is breaching SLA of process.
Can anyone please help me with some other better efficient approaches to merge data into a single file from multiple files, I know there is a way by doing with Vb script, interop, C Sharp but i am not that proficient in them.
The procedure you are following is the correct one and we don’t have any other activities to do this task quickly. Hope you are not writing one by one file data into Excel file.
If you are doing that way please avoid that way and write all the data once at the end of reading all files completed.
@Dhruvi_Arumugam , Reading CSV files using Excel Scope as we have seen in some posts may cause some formatting issues (Not Entirely sure).
Also, Using Excel Application Scope Every time creates Excel Instance every time, which may result in Slower Execution.
But once you get to Test the Alternate we should be able to Check the Efficiency and Understand if it’s really the case. Since as you mentioned there is no Huge Data in the files, these must be the reasons.