Dt.AsEnumerable.chunks(50000) will give the rows as 50k and use this in for loop…first time use a write range and later use append range…to know fifference use index property in for loop index=0 write range else append
Read the Text File: Use the “Read Text File” activity to read the content of the .txt file. You’ll have a large string containing your data.
Split the Data: If the data has a consistent structure (e.g., comma-separated values), split the string into rows and columns. You can split it into a DataTable or a List of Lists, depending on your data’s structure.ie,
- Split textData into chunks (e.g., read a certain number of lines)
- Convert each chunk to a DataTable
Process Data in Chunks: Instead of loading all data into memory at once, process it in chunks. For example, read a certain number of lines from the text file, convert them to a DataTable, and then write that DataTable to an Excel file. Repeat this process until you’ve processed all data.
Write to Excel: Use the “Write Range” activity to write the DataTable to an Excel file. When writing in chunks, ensure you’re writing to different sheets in the same Excel file or different Excel files to avoid Excel’s row limitations.
To handle this amount of data, you are better off using specialized tools such as Python with the Pandas library. You can write a Python script that will read data from a text file and write it to an Excel file with no size restrictions. Pandas processes data efficiently and allows you to work with large amounts of information.