I’m using a Pick activity with 4 pick branches inside.
Each of these pick branch activities have a find image activity as trigger.
If any of these 4 pick branch activities fail to trigger, because he image is not visible, then 2 exceptions are triggered: a timeout exception and a System.InvalidOperationException.
I’ve surrounded the pick activity with a try & catch in order to catch these 2 exceptions.
The timeout exceptions is catched, but the InvalidOperationException continues to be triggered. Even with a Try&Catch.
If you dont have any specific action to do corresponding to the type of exception, then use System.Exception. This catches all the exceptions. You may log the exception details from catch block.
I’m also getting System.InvalidOperationException exception while using a On Image Appear activity inside a pick branch. Any idea why this exception is thrown instead of timeout exception?
Any news about this issue. I have same problem with 2018.4.5 that I cannot catch exception (exception base) thrown from pick branch at the first try-catch. Second try-catch is catching those anyway.
Any good ideas? Or known if there is going to be fix for this issue from UiPath side?
Hey, guys! Any news on that?? I am having the same problem but instead of using pick branches I’m using OCR enggines. It seems that it’s not only one error in my case, but I used System.Exception and it’s not working either
I’ve found many posts reporting similar cases in forum posted since 2017 but it seems not fixed until now
I don’t know why exactly but, I guess it is related with pick and pick branch activities… because I’m using pick activity now and same error is occurring.
And other posts are using same thing. Pick and pick branches.
As a result of a week using the activity, I guess two problems with pick:
When pick and pick branches are used with element activities, they makes both of InvalidOperationException and ActivityTimeoutException in one time intermittently.
Try Catch activity cannot catch exceptions from 1’s case.
And… it’s just FYI, I moved them out from some element containers (e.g. attach browser, element scope…) and they works well and makes no exception. I tested it over 5 hours… and no exceptions until now. Hope this can be helpful if you’re going to report this bug.
I meant, I was using pick inside of attach browser, because I wanted to make them work inside chrome window. And they made exceptions.
Then I changed attach browser to element scope, they also made exceptions.
And I separated pick activity to other .xaml file and invoked it into main workflow. It didn’t make any exceptions.
After then, I got them back into main workflow, not invoked, just replaced to outside of containers, and they didn’t make any exceptions too.
Hmm… is it understandable? I’m sorry for my bad English.
I tried to occur same error whole day but failed
I don’t know why but I made workflow totally same with yesterday… and failed to occurring error.
So I’m uploading a file that include the same workflow. Sample.xaml (37.4 KB)
This file was made on 2019.10.0-beta.484 community edition and the error threw on 2018.2.3 Enterprise edition.
Maybe it was not element container’s side… sorry