Question
3
Replies
32
Views
Posted: 1 week 3 days ago
Last activity: 1 week ago
forLoop1 has not been executed for the key-RPA
Hello,
I want to open an link from a table. I interrogate via HTML table designer and build match cells and data cells.This table will load when I click on serach button of a portal screen. While designing I am getting an error "forLoop1 has not been executed for the key" along with same key related error for other parameters.
Can you please have a look into my error and suggest.
@writamb2 It looks like you have UseKeys enabled for your table. Is this really necessary? The automation surface does not support nested keys really well, so if you actually have multiple clones of the same table on a page, I would likely suggest a much more complicated approach.
My suggestion would be to start small. Make sure that you do not need to enable UseKeys for the table itself. Ask your self the following question when deciding whether or not to enable UseKeys; do I need Pega Robotics to attach to multiple copies of this control at the same time? Basically; are there two of these on the same page at the same time? I would build a simple automation to iterate the rows of the table and show a message box or log the value of each cell you care about to make sure everything is functioning as you expect. I would then add the clicking of items within the cells once I was certain I could attach to all the cells I cared about. When you are clicking a link within a cell, be aware if the clicking of the link causes the table to become unmatched. If it does, then you will be changing the list of things you are iterating in the middle of an iteration. If that is the case, you will need to have logic to address that as you cannot iterate a list once you have changed that list.