I would like to read a specific cell, from an Excel based template, that uses data validation list.
So I used read cell activity, but UiPath gives an exception: "There isn’t a worksheet named ‘Sheet1’.
The sheet’s name, I want to read is ‘Template’. I think this activity wants to get the data, not from the template, but the data validation list behind it.
How can I solve this issue? I cannot read the background database, only the template.
That’s weird, it works fine over here with data validation lists. I’m not convinced the data validation list is the problem, it seems like it’s looking for Sheet1 so it must get that input from somewhere. Can you provide screenshots or the XAML?
That’s so strange, it seems like it’s referencing the ‘Sheet1’ of the Book2 file, but it fails because Book1 doesn’t have a ‘Sheet1’… Seems like a problem in the logic of the Activity. So I’ve found a couple of ways to work around it. If you change the sheet name in Book2 to ‘Template’, it works. You can also add an empty ‘Sheet1’ to Book1, it’ll have something to reference but will still get the info from the correct place. Third option is to change the ‘Template’ sheet to ‘Sheet1’.
I know these are all not optimal solutions, but they do work.