Could not load file or assembly ‘UiPath.IntelligentOCR, Version=6.14.1.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified

Hello,
I’m having a problem running workflow on Assistant on a new PC (not my Studio PC).

It ran once, but now I’m getting a “Could not load file or assembly 'UiPath.IntelligentOCR, Version=6.14.1.0” error. I’ve tried changing package versions but it hasn’t helped. I’ve been stuck for days. What am I missing?

Thank you !

Hi @THodgson

It’s the issue with version only… uninstall the studio and install the studio of version 2022 and then change the dependencies versions to the latest and keep the version as lowest as applicable and then install those dependencies and then try running the code this might resolve the issue

Regards

1 Like

Hi @THodgson ,
Please check your version of studio and packages
What’s version in this PC?
I think you can install version older then install all package with same version
regards,

1 Like

@THodgson

Try to check the versions of packages and maintain them as per the target studio or robot versions

Cheers

1 Like

Thank you. I’ve tried reinstalling studio and also tried Version=6.9.5 of UiPath.IntelligentOCR, but it doesn’t support my workflow. Is there a work-around?

Thank you!
Studio is 2023.10.0 and the UiPath.IntelligentOCR is Version 6.14.1.0. The earlier versions of the package don’t work with my workflow.
Is it something to do with the API credentials when running in Assistant?

@THodgson

On what version is it developed?

Alternately try to copy the packages from your dev to prod

C:\users\username\.nuget\packages

Cheers

I developed it on 2023.10,

I’ll try copying the package over.

I was wondering, could it be my taxonomy file? Does this included in the binaries or does it have to be loaded as an orchestrator Asset?

Thank you!

@THodgson

It would be loaded as dependency

Cheers

Hi Anil,
To trouble shoot, I’ve been testing with a simple workflow that just digitizes a document. It runs in Studio, but when run in assistant on my dev machine, I still get the error. Any ideas on what’s going on?

Thank you!

Could not load file or assembly ‘UiPath.IntelligentOCR, Version=6.14.1.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.

at UiPath.IntelligentOCR.Activities.Digitization.DigitizeDocument…ctor()
at Test_Document_understanding.Main.GetImplementation()
at System.Activities.Activity.OnInternalCacheMetadata(Boolean createEmptyBindings)
at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors) at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback) at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors)
at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList`1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.RobotRunner.RunWorkflow()

Updating the UiPath.IntelligentOCR.Activities also requires an update for the UiPath.UIAutomation.Activities pack and for UiPath.OCR.Activities pack if included in the project. UiPath.IntelligentOCR.Activities and UiPath.DocumentUnderstanding.Activities should not be used together in the same project.

Reference: Activities - About the IntelligentOCR Activities Package

1 Like

Thank you! That was it.

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