I am merging a file into an existing file then suddenly ran into the error below.
“An item with the same key has already been added”
Note that I am using Append Range to merge the files. Upon checking, the data will be inserted to the existing file but the bot will stop and produce the error. I have tried
@caduque Seems to me that your Excel File cannot have duplicate values. Is the Excel File configured in that way or is it just a normal Excel File. If possible can you share it, and explain what you are trying to do exactly?
See attached. So I have this merged data table that I have to append in the attached file, in the Test tab of the excel.WorkForce Mgmt Template.xlsx (1.6 MB)
I’ve tried to append it on a blank excel file and it worked! But this particular file that I have sent you has some important formulas so I still need to use it. You have any thoughts for a workaround?
@caduque Yes Sure. If you can provide it please do. Others might have already encountered and would know how to solve this problem as well. But make sure that you are trying with both Excel and Workbook activities first.
@caduque Can you check if the Excel Process is still present in the Task Manager, if it’s open, Kill the Tasks, and check the Process using only Workbook Activities. Do not use Excel Scope. Can you try this and check.
@caduque ok. In that case, since you are just reading the Excel Files and not Modifying it, you can change it’s properties to Read Only and disable other Properties.