Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 11:14am
1
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
Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 11:30am
4
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
Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 11:35am
7
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
Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 11:45am
9
@Sudharsan_Ka Even after assigning, I face the same issue.
Assign for image too and try @Shanmathi
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
Anil_G
(Anil Gorthi)
January 5, 2023, 11:52am
13
@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
Anil_G
(Anil Gorthi)
January 5, 2023, 12:01pm
15
@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
Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 12:01pm
16
Hi @Anil_G
I haven’t used the img variable inside Read pdf.
Anil_G
(Anil Gorthi)
January 5, 2023, 12:02pm
17
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
Shanmathi
(Shanmathi Sadhasivam)
January 5, 2023, 12:04pm
19
@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.
Anil_G
(Anil Gorthi)
January 5, 2023, 12:08pm
20
@Shanmathi
Just to check can you please give full path of pdf or select by using folder option there
Cheers
1 Like