System.Runtime.InteropServices.COMException (0x80040215): Exception from HRESULT: 0x80040215

Hi guys,

I am facing a problem with my unattended bot. First a short description of the process:

In my process, I am using browser Microsoft edge. In one part of the process, I am saving data to a webpage. Some files that have to be saved are bigger, some are smaller.

The webpage needs a bit of time to save these data and the bigger the data is, the longer it takes, up to 4 minutes.

In the process I am using the “Check App State” Activity in order to wait for the data to save. I set the timeout to 250 sec max. The process works perferctly fine!!!

Now the problem:

When I am opening Windows log event, I can see that every so often, in exactly this process step, where I want to save the data, I get an error message.

First Error1:
*UiPath.Executor 22.4.6.0 *
TryGetAttributeForNodes for [visibleInnerText]
System.Runtime.InteropServices.COMException (0x80004005): Beim Aufruf einer COM-Komponente wurde ein HRESULT E_FAIL-Fehler zurückgegeben.

  • bei UiPath.UiNodeClass.GetAttributeForNodes(Object inputNodes, String attributeName)*
  • bei UiPath.UIAutomationNext.Services.DriverServiceCore.d__8`1.MoveNext()*

Followed by Error 2:
*UiPath.Executor 22.4.6.0 *
TryGetValueAsync for [visibleInnerText]
System.Runtime.InteropServices.COMException (0x80040215): Exception from HRESULT: 0x80040215

  • bei UiPath.UiNodeClass.Get(String bstrAttr)*
  • bei UiPath.UIAutomationNext.Services.DriverServiceCore.d__12`1.MoveNext()*

I cant see any rules this error message is following. It looks very random to me, while its only in 1 of 10 cases. The pattern is always the same. I do get Error 1 once, followed by 9 times Error 2.

Example:

Start saving: 09:42:05
Error1: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Error2: 09:42:28
Saving succesfull: 09:42:28

Any ideas?

Best
René

@rene.stein

Try using a retry scope activity on which activity you are seeing the error.

If not please provide more info like what activity is throwing it…what you used in it and versions or ui and system packages and your studio and robot

cheers

supplementary information to make it clearer:

I am not getting any error from UiPath. I am getting these error messages from Windwos event log. It does not affect my process at all, but it is still logged in the event log:

It occurs in the “Check App State” Acitivity:

image

@rene.stein

The error is not an issue…check app state is constantly trying to interact and as it fails you are seeing this also if you are running any other activity in loop and it throws error even then you see this…

cheers

Hi Anil,

thanks for your respond.

The error ist not an issue for the process and UiPath, that is correct.

But that error is definetly an issue in regards of our global server error handling…

@rene.stein

okay so I would like you to test one thing…just create a process and throw an error handle it with try catch…even then you will see error on event viewer…because UiPath throws it and then it handles

You have to may be create exceptions in global handler for your servers if possible…

cheers

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