Get Ocr text fails when run through orchestrator

Iam trying to read a text from a pdf.The pdf contains scanned copy of an image.

SO I use Get ocr text activity and when I run through Ui path studio, I get correct value of output from pdf.

But when Iam running through Orchestartor, Iam getting wrong value of output.

Please help me.

@maria.josephina

Usually it won’t happen. If you run thru studio or Orchestrator, the robot functionality won’t change.
Make sure that for OCR Text, the window will be visible.

Regards,
Karthik Byggari

@KarthikByggari
Yes the window is visible.
It is actually reading some other text.

Does Resolution has got any significance here?

OCR Text behaves differently for different resolutions, backgrounds etc., Try with a suitable OCR (Google, Microsoft).

As far I know the problem is strange.

Regards,
Karthik Byggari

I have set the resolution proprties inside Robot settings and tried. Still its not working.
Also tried with google and icrosoft ocrs; But not working
@KarthikByggari
remote%20server%20resolution

Can you able to see the remote desktop (where the robot is running) what is happening exactly while robot is running ?

I don’t see any issue here. Everything is fine.

Regards,
Karthik Byggari

When the robot starts running through orchestrator, the active remote session turns off in my system.

Can you try setting loginToConsole FALSE, which will not turnoff your remote login session. so, you can see the robot running.

I will share the program here.
Main.xaml (9.2 KB)

Let me try with your document. Currently I don’t have access to my system. I will let you know as early as possible.

Regards,
Karthik Byggari

@KarthikByggari
Hi Karhik,

It worked when I set loginToConsole FALSE in Orchestrator, and it was reading the ocr texts correctly from pdf file.
But Now I tried the same again, It is not working.
If I am running the process through Orchestrator and if I open the remote desktop and watch what is happening, I could see that the ocr texts are correctly read.

Could you please help me know whats the issue.

Thanks in advance

@maria.josephina

It looks strange. Can you please record the screen on remote desktop while robot is running. And see what is happening in the background when triggered thru Orchestrator.

I will check your workflow files and see I found something.

Regards,
Karthik Byggari

Not sure if this was solved. But I ran into same issue at my job automating certain Citrix process inside VM that needed to scrape text to confirm. By debugging I was getting the expected output text, up until publishing to orchestrator. I added logs to print the current text scraped and sure enough in orch logs of job i saw it was different.

Short Version: add logs that will print what it is scraping and check the orch logs you may need to adjust certain properties. Or use the different ocr profiles available for images such as “scan” etc.

1 Like

Did you ever find a solution?