March 9, 2023, 6:36pm
Get this error when trying to publish project to orchestrator:
“The project has Workflow Analyzer errors and cannot be published. Check global publishing settings allowed by your team.”
“Could not load file C:\ProjectFolder\Main.xaml. Reason: The invocation of the constructor on type ‘UiPath.Core.Activities.GoogleCloudOCR’ that matches the specified binding constraints threw an exception.”
Process works fine when launched from studio. In Studio settings “Enforce Analyzer before publish” is disabled.
If i enable from settings “Enforce Analyzer before Run”, i get same error when trying to run project in Studio.
You have something wrong in your code. You should fix it instead of trying to bypass analyzer and publish a project that has errors. The activity that’s got the problem should be highlighted with a red or yellow icon.
March 10, 2023, 12:59am
I am getting the same error, any solutions? Not sure exactly what is the issue with the GoogleOCR activity that is causing it.
March 10, 2023, 7:32pm
I have all packages latest version. But can’t find UiPath.GoogleCloudOCR.Activities at all with Dependency Manager. Not in Project Dependencies and not in All packages.
I have several projects what use same Google OCR and they all can published. In fact, this project what causes problem, is copied from one excisting project and modified.
Before publishing the process you need to click on workflow analyzer and check what is the exact issue.
About workflow analyzer…please read this one
March 12, 2023, 3:26pm
Workflow Analyzer points error to “UiPath.Core.Activities.GoogleCloudOCR” package.
But it’s not listed on project dependencies and i can’t also find it from Package Manager, not in Project Dependencies and not from All packages.
But this project runs fine in dev machine and i have before been able to publish it to Orchestrator. This change in behavior has probably come after UiPath Studio has updated?
March 12, 2023, 3:29pm
Did you used some libraries created on your own? Maybe some of the libraries was built with this package?
March 12, 2023, 5:41pm
Didn’t use own created libraries.
Are these libraries somewhere in harddrive as files? Have used UiPath 5 years but never studied UiPath “under the hood”
March 12, 2023, 7:58pm
Is this a new project? Did you copy/import any files from other projects where this activity package was used?
Could you make screenshot what dependencies you are using in your project?
March 13, 2023, 5:08pm
No, this is not new project. It’s been in use about 6 months. 6 months ago it was published to Orchestrator, and now when trying to publish it comes Workflow Analyzer Errors.
When project was made, OCR activities where copy/pasted from another project. Project where they were copied, is possible to publish to Orchestrator.
@mikko1 *Did you solve this? I get the same exact error after upgrading UiPath Studio to the latest version.
There is a package called UiPath.Core.
Activities.GoogleOCR inside of UiPath. UIAutomation. Activities which is the Tesseract OCR
also here explains more:
GoogleOCR The invocation of the constructor on type - #4 by Midwayuser
March 20, 2023, 6:20pm
A little bit offtopic: I would not recommend using preview packages, because they can be removed from UiPath feed. It also can contains some bugs.
Preview version are published to be tested with community edition and to share with some new features available in next releases.
UIAutomation. Activities is not preview but i get what you are saying