For this error i untick the “Add Header” in the property of read range, the thing is that iam using an invoke code activity which is using headers,
when i untick the add headers the invoke code activity showing error.
You should uncheck the add headers option, UiPath will create columns and you should use those column names created by UiPath, pass the one that you need to the invoke code
@Gokul_Murali Try reading it to separate Datatables and then you can merge all the Datatables into one by using ‘Merge Datatable’ Activity(Missing Scheme Action in property panel should be ‘Ignored’)
Use Different Variables for Each Read Range, so the headers won’t interfere with each other.
Store the headers in a separate variable and use that variable in the “Invoke Code” activity, allowing you to untick the “Add Headers” option while reading the data.
@Gokul_Murali In the property panel of the ‘Read Range Workbook’ activity, under the output option you can create new variables by pressing Ctr+K and then give a new name
eg: dt_Input1,dt_Input2 and so on
Guys i have resolved the issue by adding a check in the end process ie,
first it will read excel and process, After completing the first excel it will come to the end process and check for any excel is there or not in the folder if there
it will go to init state and read the 2nd excel .
Note :-
it is processing the first file and after that it is reading the 2nd excel also, login to the application again but process stop saying that no more data to process(In Get Transaction state) even though data is there in the 2nd excel.
so is it possible to process the 2nd excel after processing the 1st excel in the Reframework in the first run.
Ideally from end process it wont go back…that would be the lst state…also if you wnat to read each excel then change your transactionitem as string and pass each excel for each iteration then it will read all excels one by one and then end the process