Intelligent OCR Activities: Compilation Errors Right From the Start

Hello,

when you create a project based on the “Document Understanding Process” template and debug the main process without making any changes to the newly created project, then a variety of compilation errors are thrown as shown in the screenshot below.

These errors seem to be caused by UiPath.IntelligentOCR.Activities requiring UiPath.CefSharpBundle.NetCore. Even if you create a new project (Windows) and only add UiPath.IntelligentOCR.Activities as a dependency (without any other dependencies) the same errors are thrown.

This doesn’t happen in Windows-Legacy projects, only in Windows projects. The .NET runtimes that are installed are shown in the screenshot below (OS = Win 11). Do you know how to resolve these errors?

Best, Emerald.

@Emerald

Try deleting the package from the location(.nuget) and re open the project…that would download new dependencies which might clear the issue

Alternately try downgrading the inteligent ocr packages

Cheers

Hi @Anil_G, thanks.

Guess what I did, multiple times? :wink:

  • I tried every available package version.
  • I deleted all NuGet caches on my machine.
  • I tried several .NET runtime versions (core, desktop).
  • I explicitly installed CefSharpBundle.
  • I uninstalled and reinstalled Studio.

Nothing helps. :slightly_frowning_face:

Best, Emerald.

1 Like

@Emerald

I believe that is not stopping you from running it…as in new studio perhaps we are seeing bad IL format almost on all projects created

To be honest…even I see that error whenever i compile on my latest studio community version. And has been reported by multiple users

And thats a really exhaustive list of tries i would say

Cheers

1 Like

Yes, it doesn’t stop me from running the process.

However, the Taxonomy Manager crashes since it depends on the Intelligent OCR package.

I’m just not comfortable putting a process in production with compilation errors.

Best, Emerald.

1 Like

Agreed on the production piece

Hi Emerald did you try deleting the optional workflows that were not used?

I was using the new DU process and faced the same compiling errors. It went away after I deleted all optional frameworks that I didn’t use.

Hi @sharon.palawandram

Yes. I did. As mentioned, the errors also occur when I’m creating a new process project (no template) with one empty process, and only add the UiPath.IntelligentOCR.Activities dependency.

Best, Emerald

Hello @sharon.palawandram,

the problem is that I cannot just remove the .NET SDKs & Runtimes (Core, Desktop) other than .NET 6.0, since (1) other applications rely on other versions, and (2) other automations still require older versions. Did you only keep .NET 6.0?

Cheers, Emerald.

Can you do the following in order please?

  • Delete the .nuget folder on your PC (to remove all cached packages)
  • Delete and then reinstall IntelligentOCR from the package.

There might be an issue where it takes the wrong Cefsharp is being loaded.

I cannot reproduce this bug.

Hello @Sergiu.Wittenberger,

I deleted the following folders:

  • %userprofile%.nuget
  • %localappdata%\NuGet
  • %localappdata%\Temp\NuGetScratch
  • %userprofile%\AppData\Local\UiPath.cache

After installing the Intelligence OCR package in a fresh new project, the compilation errors still occur.

Do you have any other idea?

Best, Emerald.

Hi. Even i faced this same error message dll is invalid and able to resolve the issue.

I was accidently trying to edit extraction result dataset in one of the assign activity . If i commented it out build is successful . I believe we can not edit certain DU variables. That’s why we are facing this issue… Commenting here so that it will be helpful for others also.

Thanks & Regards
Ponganesh S K