When I download monthly reports I notice that they have different column structure, for example in January Date is the column #1 and in May it is column #5. Is this intentional or a bug?
If intentional - how to join such data tables? Being stuck on this for several hours already.
As it clearly written, it doesnât matter what data is there in the merged excel file.
Just use build data table to append the data of each month.
As per the instructions, we have to just upload the yearly report (no need to worry whatâs there inside excel).
In order to simply achieve your requirement, first you have to build a datatable with all the headers. (dt_YearlyReport)
After the âread CSVâ activity, read the âdt_MonthlyReportâ datatable and assign all the cell values to the corresponding values of the built datatable under the same header.
just like, assign â dt_YearlyReport.Rows.Item(row_index)(âInvoiceNumberâ) to row(âInvoiceNumberâ) inside a âfor each rowâ iteration of dt_MonthlyReport.
where, ârow_indexâ is a temporary counter to increment the row index of dt_YearlyReport.
As the cell values of the datatable are fetched and assiged here, donât worry about the header replication.
Please donât forget to add a datarow activity with a null array({}) at the beginning of âfor each rowâ activity and increment the row_index count at the end.