My challenge. I have an Excel Template File that I want to write data to.
dt_Template: User ID, User Name, Address, Company, University: are the header names.
Another Excel file will be read, but the columns are not in the same order and not all columns will be in the file.
dt_One : University, User ID
How to read the column headers from second datatable, compare to the first, then write the information from dt_One to the appropriate column in the template?
In the assign activity with nRow, getting error that datarow cannot be converted to datatable. Also, the for each workflow is not in the downloaded sample.
Thank you. Trying to work through this. Actually, I do not want the final table to look like the second table. The goal is for the data to be written into the template format each time and for the bot to be able to read data in columns whether they match the template format or not
I’m wondering during the If condition if the current column is a match, it could write the data from DT1 to the Template?
However, trying to figure out the error in the If statement first
In my environment, it works and no lack of activities in the above uploaded sample. Can you check if there is error of dependencies in project panel? And/or try to load and run again?