UiPath does not provide a direct function to split DataTable by column sum. You can loop through rows, keep a running total of Volume, and once it reaches 62, copy rows to a new DataTable and reset the counter. Use Filter DataTable or LINQ with Add DataRow in separate DataTables for the split logic.
You can use the LINQ a/c to your requirements pls modify.
Dim tables As New List(Of DataTable)
Dim currentTable = inputTable.Clone()
Dim sum = 0
For Each row As DataRow In inputTable.Rows
sum += Convert.ToInt32(row(“Volume”))
currentTable.ImportRow(row)
If sum >= 62 Then
tables.Add(currentTable)
currentTable = inputTable.Clone()
sum = 0
End If
Next
If currentTable.Rows.Count > 0 Then tables.Add(currentTable)
@balanirmalkumar.s Please provide a sample input and output file reflecting your requirements, so we can better understand the scenario and find an appropriate solution.