I am not able to use the activity Read PDF with OCR. I have the following message error:
I am using Studio 2024.10.8 with C# language (Windows project) and the package UiPath.PDF.Activities 3.16.0. For the rest of the packages, I am using the latest versions.
The issue occurs because Read PDF with OCR internally uses VB.NET expressions, while your project is in C#. Since Windows projects enforce a single-language rule, this causes a compilation conflict.
Use an Isolated Workflow (Ensure Arguments are Correct)
You mentioned trying this, but double-check these steps:
Create a Separate Workflow (.xaml)
Right-click your project → Add → Sequence(or a new workflow).
Ensure this new workflow is VB.NET-based (not C#).
Move the Read PDF with OCR activity into this workflow.
Pass Arguments Properly
Define In/Out arguments to send/receive data between your C# main workflow and the VB.NET workflow.
I can confirm this behaviour, the activity seems broken in a C# project. This can be demonstrated by opening a fresh C# project and trying to add the activity, no OCR engines can be added to it whereas in a VB.NET project you can.
I suggest you raise a bug report via the UiPath Helpdesk.
I’ll try to mention it to the product managers and also point out the documentation here contains a project that is in legacy format and should be updated.
It does appear that the result from Ioana may fix your immediate issue, however there is still the issue where new PDF OCR activities cannot be added in a C# project (and I think it might be related), so that is also reported as a bug now.
Hope the documentation in the above release notes does fix your issue though!
Edit, seems to be some nuance here related to the OCR engine activities being in a different package and them not being so intuitive to find, but thats not related to the language issue and more a case of if anyone reads this in the future, its perhaps not a bug that the C# project doesn’t get the OCR engines but that the Ux isn’t as straightforward as maybe it could be.