OCR not running issue

Hi,
I am trying to read the text from pdf which is in image.
using the RPA express 2.0 version
It is always getting crash. Too difficult to use OCR activity not reading and also please let me know if we have to do some prior setting before using OCR activity

@nutan_kadam is OCR running in the tray menu?

image

What error does the action fail with? Please share the error details.

Yes OCR is running in tray menu

@nutan_kadam what error does the action fail with?

Error executing OcrAction
com.workfusion.studio.rpa.recorder.model.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=3,name=Optional[OcrAction],parent=-1,nextSibling=4,arguments=ActionArguments[varName=[name],imageName=[C:\Users\Paul\workfusion-workspace\rpae_project\recording-1538413943418\1538415835653-anchor-1538415835835.apng],fullImageName=[1538415835653.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],offsetX=[7],varType=[java.lang.String],offsetY=[102],delay=[0],width=[115],actionDetails=[(to ‘name’ rectangle 7 x 102)],height=[39],awaitTimeout=[5000]]]
at com.workfusion.studio.rpa.recorder.model.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:54)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:27)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:14)
at com.workfusion.studio.rpa.recorder.model.playback.player.ActionPlayer.next(ActionPlayer.java:51)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:153)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:113)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.WebDriverException: 403 Forbidden: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>OCR license has expired on 3 Feb 2018 23:32:35
Command duration or timeout: 2.42 seconds
Build info: version: ‘8.5.0-SNAPSHOT’, revision: ‘dd175a8f1d9977592532d2433dae654424e07ce4’, time: ‘2017-11-16 10:21:05’
System info: host: ‘LAPTOP-1A9L8T8A’, ip: ‘192.168.1.2’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper
Capabilities [{imageSimilarityThreshold=0.8, webdriver.remote.sessionid=852d1776-82df-4ae0-983e-ca0266f09b15, CLOSE_ALL_WINDOWS=false, browserName=universal, takesScreenshot=true, javascriptEnabled=true, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
Session ID: 852d1776-82df-4ae0-983e-ca0266f09b15
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:545)
at com.workfusion.rpa.helpers.RPA.executeScript(RPA.java:720)
at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:768)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:90)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:35)
at com.workfusion.rpa.helpers.Ocr$proccessImage.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at Script5.run(Script5.groovy:2)
at com.workfusion.studio.rpa.recorder.model.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:64)
at com.workfusion.studio.rpa.recorder.model.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:32)
at com.workfusion.studio.rpa.recorder.model.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:27)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:14)
at com.workfusion.studio.rpa.recorder.model.playback.player.ActionPlayer.next(ActionPlayer.java:51)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:153)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:113)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.remote.ScreenshotException: Screen shot has been taken
Build info: version: ‘8.5.0-SNAPSHOT’, revision: ‘dd175a8f1d9977592532d2433dae654424e07ce4’, time: ‘2017-11-16 10:21:05’
System info: host: ‘LAPTOP-1A9L8T8A’, ip: ‘192.168.1.2’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:138)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:646)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:545)
at com.workfusion.rpa.helpers.RPA.executeScript(RPA.java:720)
at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:768)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:90)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:35)
at com.workfusion.rpa.helpers.Ocr$proccessImage.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at Script5.run(Script5.groovy:2)
at com.workfusion.studio.rpa.recorder.model.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:64)
at com.workfusion.studio.rpa.recorder.model.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:32)
at com.workfusion.studio.rpa.recorder.model.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:27)
at com.workfusion.studio.rpa.recorder.model.playback.action.template.TemplateAction.execute(TemplateAction.java:14)
at com.workfusion.studio.rpa.recorder.model.playback.player.ActionPlayer.next(ActionPlayer.java:51)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:153)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:113)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: 403 Forbidden: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>OCR license has expired on 3 Feb 2018 23:32:35
Build info: version: ‘8.5.0-SNAPSHOT’, revision: ‘dd175a8f1d9977592532d2433dae654424e07ce4’, time: ‘2017-11-16 10:21:05’
System info: host: ‘LAPTOP-1A9L8T8A’, ip: ‘192.168.1.2’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: EventFiringWebDriver
at com.workfusion.desktop.driver.ocr.impl.OcrResponseErrorHandler.toException(OcrResponseErrorHandler.java:40)
at com.workfusion.desktop.driver.ocr.impl.OcrResponseErrorHandler.handleError(OcrResponseErrorHandler.java:31)
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580)
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:407)
at com.workfusion.desktop.driver.ocr.impl.OcrClient.processImage(OcrClient.java:140)
at com.workfusion.desktop.driver.ocr.Ocr.proccessImage(Ocr.java:49)
at com.workfusion.desktop.driver.ocr.Ocr$proccessImage$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at Script1.run(Script1.groovy:8)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:623)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:594)
at com.workfusion.autoit.driver.AutoItDriver.executeScript(AutoItDriver.java:218)
at com.workfusion.autoit.driver.AutoItDriver.executeScript(AutoItDriver.java:187)
at com.workfusion.universal.driver.UniversalDriver.executeScript(UniversalDriver.java:139)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:81)
at com.sun.proxy.$Proxy3.executeScript(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver.executeScript(EventFiringWebDriver.java:202)
at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:54)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

@nutan_kadam looks like the license has expired. Which version of RPA Express are you using?

Sunburn version

Whenever I am trying to read data and store into variable it shows this eror

My clients are getting very much disappointed by this so they are trying to switch to uipath

Can you please help me with any workaound

@nutan_kadam you need to install a new version of RPA Express (2.1.1) to be able to use OCR.
The current OCR license is valid till November 7. After that, you will need to update to a newer version again.

Hi @nutan_kadam
Depending on the types of PDF you are processing and the information you need to extract from them maybe you can avoid OCR and use xpath functionality instead.
Here is the description how that works:
Working with PDF using Xpath as substitute for OCR

You said license is will expire on 23 November and I was working day before yesterday so license was there

@nutan_kadam did you update to a new version of RPA Express - 2.1.1?