GetText activity capture timeout error


Any of you could help me understand what is generating this error?

message":“System.Runtime.InteropServices.COMException (0x80040212): Capture timeout.\r\n at UiPath.Core.Activities.TaskAsyncCodeActivity`1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)\r\n at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)”

The flow is mostly simple.
I.m capturing the text from an app. If the text is “Communication Complete” it should move on, else keep capturing.
This error does not occur at every run and i can.t seem to identify what it is causing it



1 Like

Hi @Victor_Carmocanu
So activities on their own have a timeout to prevent them from running forever. For example, if you say “get text” - if UiPath can’t find the text within 30 seconds (default) then it will timeout and throw an error. You then need to handle that error. You can change the timeout to increase or decrease depending on the application you’re working on.


Bot is trying to perform any action on ui element which is not available .It may happen because of site loading issue or any popup appearing there which is blocking the bot action or there may be more reasons.
To find at what point this error happen - in catch part of try catch activity, use the activity “Take screenshot”.It will help you in finding the position or point where exception occurred.
To handle this try using these activity in the code - 1) element exist
2) on element appear
3) delay
4)find element
5) provide delay before or delay after in click activity

Hi syedabidraza,

Thank you for your input. I have tried all the mentioned options but they did not work.
Problem was that i was dealing with an old app and some of the content was not properly rendering.
I decided to monitor the status of a different control ( if it was disabled/enabled )



This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.