Error Could not load file C:\Users.xaml. Reason: The invocation of the constructor on type ‘UiPath.DocumentUnderstanding.ML.Activities.MachineLearningExtractor’ that matches the specified binding constraints threw an exception.
I am getting the follow error when I try and run my workflow from studio. It only happens when machine learning extractor is added. I tried to build a new workflow from scratch and got the same issue. All packages are up to date.
Please run the bot in debug mode and check the inner exception details…
Looks like some package reference is missing in .nuget folder…you might mostly get the exact detaila of the pckage from
The inner exception details …when you run in debug …open the locals panel and expand the exception details item in the locals panel which will have more information
C:\Users\USER\.nuget\packages\uipath this is the location wherw you would have the packages check if the required pckages are presnet if that is the issue…else please show what more details that you could get…that might help more in resolving
Thank you for the response. Documentunderstanding.ML.activities is present at that location along with a bunch of other DU activites like .ocr and .digitizer. I can’t run the project at all, it doesn’t even compile.
No, I created the .xaml on my own PC. If i take the data extraction scope, which includes the machine learning extractor, out of the .xaml it seems to function fine.
Hi @Vinny_LaRocca! What versions of UiPath.DocumentUnderstanding.ML.Activities and UiPath.IntelligentOCR.Activities are you using? Make sure they’re compatible. I opened your XAML in a project with the latest versions without any issue:
Sorry for the late reply, I missed your message. What Studio version are you on? Does moving the code to a new, clean project cause the same exception to occur?
Apparently, this is a known bug. I was provided a work around that fixed the issue for now. Within the design settings in studio I had to disable, the “enforce analyzer before run” option.