For Each UI Element: Error HRESULT E_FAIL has been returned from a call to a COM component

Hi Team,

I am getting below error while using For Each UI Element.

Hi @Pavan_kumar15

Try delete the For each Ui element activity and drag and drop then use it again.
It shows this error when the scope output variable got change.

Hope it helps!!

Hi @mkankatala ,

I tried, but throwing same error

1 Like

@ashokkarale can you please look into this

Hi @Pavan_kumar15

Try by deleting all the cache and history from the browser.
Make sure browser is in updated one.

If still error came ,Try by changing browser to chrome.

Hope it helps!!

@Pavan_kumar15,

Try changing the Wait for page load property of For Each Ui Element activity to Complete

I think it’s not giving time to load the page.

Thanks,
Ashok :slight_smile:

Hi @pravallikapaluri , it did not worked

Hi @ashokkarale ,

it did not worked

@Pavan_kumar15,

May be try adding a static delay of 5 seconds or something before foreach. I suspect the page is not loading properly which is resulting in this error. It’s not the issue of UiPath activity but page DOM have something wrong.

Thanks,
Ashok :slight_smile: