How to loop a failed RPA automation

Ok, this is do able by refreshing the site, but how did the robot read the data that are done inputted and not yet inputted to the website? The data is from excel file