Expression Activity type 'VisualBasicValue`1' requires compilation


I’m trying to read the OCR type pdf, and write in a text file. It was previously working fine.
Now when I try to run the process I face this issue, like

Error: Read PDF With OCR: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.

I have referred previous threads that are similar to this issue. It doesn’t solve my issue.

HI @Shanmathi

Have you replaced your double quotes in that activity?

You need to check and replace all the double quotes in the properties of the activities

Regards
Sudharsan

1 Like
1 Like

Thanks @Sudharsan_Ka ,
After declaring a variable to the Image field in Tesseract OCR. It worked.

Now, it shows

Read PDF With OCR: Object reference not set to an instance of an object.

Can you show the variables you assigned? @Shanmathi

1 Like

Try initializing the variables that you have used before the read PDF with OCR @Shanmathi

1 Like

Sure @Sudharsan_Ka .

Output text as ocrText and Image as image in tesseract OCR.

Use Assign before Read PDF with OCR and try once @Shanmathi

ocrText=“”

1 Like

@Sudharsan_Ka Even after assigning, I face the same issue.

Assign for image too and try @Shanmathi

image

1 Like

And also can you check the pdf file is available in the project folder and give the absolute\full path
of the pdf file and check again @Shanmathi

1 Like

And also please change the variable name of image datatype variable @Shanmathi

1 Like

@Shanmathi

Please remove the image variable as you used inside read pdf that is not needed as image is null you are getting this error

Cheers

1 Like

@Sudharsan_Ka
image

@Shanmathi

As stated above please remove image variable completely…you need not have it at all…

This is null…you are only initializing it but not supplying any value

Cheers

1 Like

Hi @Anil_G
I haven’t used the img variable inside Read pdf.

Aren’t you using in Tesaaract ocr inside that?

Cheers

1 Like

Do you use that image somewhere else? @Shanmathi

If not please remove the image variable and the clear the properties in the Tessaract OCR as @Anil_G suggested

Regards
Sudharsan

1 Like

image

@Anil_G @Sudharsan_Ka Yeah I have removed.

Read PDF With OCR: Object reference not set to an instance of an object.

when I not declare the image , it occurs an error.

image

@Shanmathi

Just to check can you please give full path of pdf or select by using folder option there

Cheers

1 Like