Error Message: OCR: Nested Function Does Not have same signature as delegated

Hi All,

I am using Read PDF with OCR under that I am passing path on PDF and OCR(Tesseract) but after passing that I am getting error message.
Argument Image(2) error BC36532: Nested Function Does Not have same signature as delegated. for input Image section.

@jatin.kalra2

Welcome to the community

Is it coming on the ocr in image input?..if so remove it and check …and then if error persists press ctrl+k and create a variable in that image field

Hope this helps

Cheers

Hi Thanks for reply,
But i didn’t created that variable its by default.
I tried to remove it provided new one but still encounters same.

HI,

The following is screenshots for solve this issue. Can you try the following as it is?

Regards,

6 Likes

Hi @jatin.kalra2

Here are a few things you can try to fix the error:

  1. Check the input parameters for both the nested function and the delegate. Make sure that they match in terms of the number of parameters, data type, and order.
  2. Ensure that the OCR library (Tesseract) is installed and configured correctly. Verify that the path to the OCR executable is correct and that it is accessible from your code.
  3. Check the version of the OCR library you are using. Make sure that it is compatible with the version of the PDF library you are using.
  4. Try updating your code editor or IDE to the latest version. Sometimes syntax errors can occur due to bugs or issues with older versions of software.
  5. If none of the above solutions work, try seeking help from the software’s documentation or community forum. You may also consider hiring a developer to help you troubleshoot the issue.

I have the same error having updated to Studio Enterprise 2023.4.3 with any OCR Activity within the Digitize Document activity.

A fix is to remove the Digitize Document activity and replace it with a new one copied into the workflow and just replace all of the values. For some reason upgrading to 2023.4.3 breaks the Image value, but copying in the new Digitize Document and replacing the OCR activity fixes it.
@loginerror Is the UiPath dev team aware of this issue?

Can you also try importing the “system.drawing.imaging” namespace manually within the studio.

You just have to delete “Image” from the OCR activity then CTRL+K, type Image again, and press enter. Then the datatype of the Image variable will be correct.

I don’t think this should be happening anymore, but please do let us know in case it does.