I am having such an annoying issue with this project. My loop works fine and goes to the next month with ease. However it will not change months after sucessfully downloading and saving a file.
Ex. it starts at january, if the jan file does not exist it will switch to feb and preform the process, however if february exists the file will download and save properly but then the bot freezes and march will never be pressed.
I am having this exact same issue. I added a Write Line activity to write the value of month at the top of the For Each loop.
Dynamic selector works fine for January, no report found, moves on to February, works fine and downloads the report, goes back to the top of the For Each loop, writes “March” from the Write Line activity, then never continues. I never get an error either, it simply hangs up forever.
I have verified it’s not an issue with the month itself - if I remove January and February from the months array entirely, the form will click select March, click the download button, see there’s no report, select April, fully download the report, return to the top of the array, write May to the log, then hang forever.
If I use a fake Tax ID so that the report always gives the “no report found” message, it will loop through the entire array without hanging at all, correctly selecting each month along the way.
Edit - I’ve solved the problem. The selector is actually fine, the issue is the WaitForReady property of the Click activity. You must set WaitForReady to “NONE” for your Click acitivities on the Month selector and the Download Report button. If this is not set, the selectors will hang for up to ten minutes on each click. This is likely a defect in either UiPath or with the website design that hasn’t been updated to reflect recent changes in IE.