Guys, this starts to be more sad than funny.
So a month ago I created a new project from template for DocumentUnderstanding (from Studio- Templates).
Everything was working nicely, I did some demonstration for my colleagues etc.
I will do another demo in few days so I just thought I will run the workflow again, you know, just to be sure.
Meanwhile Studio updated to 2022.10.
I opened the process and run.
Error no. 1
Uff, what is that?
UiPath.SmartData.OutOfProcessUi.Host.exe
To run this application, you must install .NET
(The Yes button does nothing)
So I decided (after reading few threads) to go on downloading .NET Desktop 6.0 from here:
Download .NET 6.0 Desktop Runtime (v6.0.10) - Windows x64 Installer
Seems like it works.
Error no. 2
Error waiting for OutOfProcessUi host service. Timeout 30000.
Aha… so let me try to upgrade all the packages to their latest versions.
My UI Automation package was 22.4, now it seems that all is up to date:
"dependencies": {
"UiPath.DocumentUnderstanding.ML.Activities": "[1.17.0]",
"UiPath.Excel.Activities": "[2.16.0]",
"UiPath.IntelligentOCR.Activities": "[6.5.0]",
"UiPath.System.Activities": "[22.10.1]",
"UiPath.UIAutomation.Activities": "[22.10.2]"
},
Running it, fingers crossed…
Oho! New error…
Error no. 3
Compiler error(s) encountered processing expression "TypeOf(in_Exception) Is BusinessRuleException OrElse
TypeOf(in_Exception) Is DocumentRejectedByUserException".(3) : error BC30002: Type 'DocumentRejectedByUserException' is not defined.
Framework/ReusableWorkflows/SetTransactionStatus.xaml
Okay, seems like I am the first one with this error, lets burn more time and investigate.
Aha, it is in SetTransactionStatus.xaml, let’s open the file.
(One would expect that for example double click on the error will open the respective file where the problem is and maybe even point at the problematic activity, but sadly, no luck this time, maybe in some future…)
So - where is the error? no error mark at any activity - Oh good good!
After playing hide n seek for a while, I found it in the second Flow Decision
…
Rebooting my PC did not help.
Any ideas? This is kinda urgent.
EDIT: I managed to make it work by deleting this:
OrElse TypeOf(in_Exception) Is DocumentRejectedByUserException
from the problematic Flow Decision.
However - I guess that is not the correct systematic solution.