OCR Error: Falied to execute Action OcrAction


#1

When running recorder with OCR, the OCR action fails with the error indicated below:

Failed to execute Action OcrAction
java.lang.RuntimeException: Failed to execute Action OcrAction
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.execute(ActionFlowPlayer.java:311)
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.processAction(ActionFlowPlayer.java:256)
at com.workfusion.studio.rpa.recorder.model.action.SwitchWindowAction.executeNestedActions(SwitchWindowAction.java:63)
at com.workfusion.studio.rpa.recorder.model.action.SwitchWindowAction.executeAction(SwitchWindowAction.java:34)
at com.workfusion.studio.rpa.recorder.model.action.ActionWithDelay.execute(ActionWithDelay.java:27)
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.execute(ActionFlowPlayer.java:290)
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.processAction(ActionFlowPlayer.java:256)
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.lambda$1(ActionFlowPlayer.java:120)
at java.util.ArrayList.forEach(ArrayList.java:1249)
at com.workfusion.studio.rpa.recorder.processor.ActionFlowPlayer.lambda$0(ActionFlowPlayer.java:120)
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)

Note:

  1. RPA Version 1.1.3
  2. OCR is running
  3. I have attached Logs.zip (11.9 KB), which includes:
    a) application.properties from INSTALL_DIR\OCR and version number.
    b) rpaxwin.version in INSTALL_DIR\RPA\wfagent
  4. I have attached the recording Recording.zip (3.5 KB)

Below is the screenshot of the OCR Action


#2

Today the OCR license for 1.1.3 version has expired. This causes OCR exceptions.

Please wait the 1.1.4 release which is expected today or tomorrow.


#3

Hi,

I am trying to run a bot that has an OCR step in it, it just gets stuck at the OCR step and refuses to go ahead. I am facing this for the first time. Previously, the same recording worked fine for the same number of steps. What could be the possible reasons for this?

Please need help on this as early as possible.

Regards,
nikhil


#4

@Sharma_Nikhil,

please see above answers


#5

Hi @azinchuk,

Is there any other way to get this OCR thing working for today? till the time the new version would be released. We have an important meeting where this needs to be presented, in next 30 minutes.


#6

My understanding then, is that the OCR license tied to the RPA version i.e. when 1.1.5 is released, the OCR license for 1.14 will expire.

If this is the case, as you can imagine all business processes that use OCR will cease to work until the next version is downloaded, tested and deployed. This would reverst us back to a state pre-RPA processes which is not what our senior management team would expect.

I understand this is beat, but is there a schedule of when versions will be released, in order for us to anticipate downtime for our business processes? Or at the very least a form of communication in advance that the OCR license will be expiring?


#7

hi everyone! So how can we know when the new version of RPA is avaliable? Thanks


#8

Soon


#9

I second your comments.

The OCR issue makes us very frustrated.

I was on leave for one week last week without knowing that the OCR licences will expire soon, was only told that we can use the OCR for free for the first 10K pages.

Our process cannot run at all for one week.


#10

@Darcy

Updated OCR license is out with new RPAe
Please, download and install latest version (1.1.4)


#11

Hi,
Using OCR i am trying to read a PDF and bar-code ,
I am trying to use OCR i am getting the following error,

Does i need any licence for using OCR ?

Error as Follows:
Error executing OcrAction
com.workfusion.studio.rpa.recorder.model.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=9,name=Optional[OcrAction],parent=8,nextSibling=10,arguments=ActionArguments[varName=[variable],imageName=[C:\Users\Deepack\workfusion-workspace\rpae_project\recording-1506058379945\barcode-anchor.apng],fullImageName=[barcode.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],offsetX=[574],varType=[java.lang.String],delay=[2000],offsetY=[428],width=[231],actionDetails=[(to ‘variable’ rectangle 574 x 428)],awaitTimeout=[5000],height=[41]]]
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:147)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:108)
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"?>License file does not exist: Licenses\ocr-rpax.license
Command duration or timeout: 697 milliseconds
Build info: version: ‘8.5.0-SNAPSHOT’, revision: ‘ea718eb6fe87923f2e412d135f26f55fb0f75cc2’, time: '2017-09-08 08:56:34’
System info: host: ‘DESKTOP-LATSTRD’, ip: ‘10.1.11.110’, 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=04acec36-c2a1-4758-8570-5a1bf5a8c78c, CLOSE_ALL_WINDOWS=false, browserName=universal, takesScreenshot=true, javascriptEnabled=true, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
Session ID: 04acec36-c2a1-4758-8570-5a1bf5a8c78c
at sun.reflect.GeneratedConstructorAccessor63.newInstance(Unknown Source)
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:702)
at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:750)
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 Script4.run(Script4.groovy:3)
at com.workfusion.studio.rpa.recorder.model.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:34)
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:34)
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:147)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:108)
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: ‘ea718eb6fe87923f2e412d135f26f55fb0f75cc2’, time: '2017-09-08 08:56:34’
System info: host: ‘DESKTOP-LATSTRD’, ip: ‘10.1.11.110’, 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:702)
at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:750)
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 Script4.run(Script4.groovy:3)
at com.workfusion.studio.rpa.recorder.model.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:34)
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:34)
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:147)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:108)
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"?>License file does not exist: Licenses\ocr-rpax.license
Build info: version: ‘8.5.0-SNAPSHOT’, revision: ‘ea718eb6fe87923f2e412d135f26f55fb0f75cc2’, time: '2017-09-08 08:56:34’
System info: host: ‘DESKTOP-LATSTRD’, ip: ‘10.1.11.110’, 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:215)
at com.workfusion.autoit.driver.AutoItDriver.executeScript(AutoItDriver.java:184)
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)


#12

Hi @avinash_darga,
Please try to download and install latest version
Katsiaryna


closed #13