Get Text Activity failing in loop

I am using Get Text Activity for fetching text from browser pages. This activity is used in loop, as I have to get data form same area on different web pages.

It is working fine for first iteration, but throws following exception in second iteration:
get_transaction_data has thrown an exception

Source: Get full text ‘B’

Message: Value does not fall within the expected range.

Exception Type: ArgumentException

System.ArgumentException: Value does not fall within the expected range.
at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

I have checked for selectors already.

If you are changing the browser pages then will not the selector of ‘Get Text’ changes everytime? I believe you are making sure that the selector is dynamic enough again to handle those changes.

Could be silly but can you try adding a delay for a second or two right before the ‘Get Text’ activity?

Rammohan B.

@s.praachi Give delay before get text Or If its not working in second iteration means selectors is changing so check selectors

@Rammohan91 & @indra
Thanks a lot. Delay worked…