OCR Issue in RPA Express

issues
ocr-license

#1

I am working on OCR process in RPA Express Control Tower. When running the business process,it is throwing an error “Host Name cannot be Null” in the event log .

Could you please suggest me a solution to resolve my issue as soon as possible.

Thanks in advance.


#2

Hi,

We have a test environment setup using VM with an internet connection and all requirements met for RPAx. We have installed a dummy version of our CRM-system on this VM as to not accidentally mess up our own.

To use RPAx with our CRM-system we are heavily reliant on OCR since there are several areas where we can’t capture text the old fashioned way with marking/copying and gathering data from clipboard.

I have been running tests on the OCR function now and I can’t get it to work. The error “Error executing OCRAction” pops up on each test I have done, sometimes right away, other times it takes about a minute.

I am running version 1.1.8-beta and OCR is running. Also, if i run the PDF-test on my own computer (with almost exactly the same setup) I can get it to work about 50% of the time, but when it does work the output has a lot of misinterpretation of letters and numbers.

For this instance, I have two basic tests. One is an attempt to capture a line of text from our CRM-system and output that to notepad. The other is a line of text from a random PDF with simple text in black on a white page and output that to notepad. Neither of these tests work. I have remade from scratch these two tests as early as an hour before posting this and still get the same error.

I made sure to set up beforehand a string variable called “text_from_ocr” and also made sure that each OCR action “puts OCR result into variable”. Both tests rely on manual screen-captures where I made sure the anchor region does not overlay with the capture region. I use "Enter keystrokes (from variable ‘text_from_ocr’) as a keyboard action to try to output into the notepad. According to the troubleshooting-guide on OCR I am all set, but it just won’t work.

See screenshots from the PDF-test on our VM:


#3

@cvo
Hi Christian, please send the error details.

Alesia


#4

Here you go!

Error executing OcrAction
  com.workfusion.studio.rpa.recorder.model.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=2,name=Optional[OcrAction],parent=1,arguments=ActionArguments[varName=[text_from_ocr],imageName=[C:\\Users\\SWE-Plexus\\workfusion-workspace\\rpae_project\\recording-1513068191476\\1515081884307-anchor-1515081884366.apng],fullImageName=[1515081884307.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],offsetX=[91],varType=[java.lang.String],offsetY=[336],delay=[0],width=[264],actionDetails=[(to 'text_from_ocr' rectangle 91 x 336)],height=[46],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: OCR task has failed : taskId=3 status=ProcessingFailed tries=1
Command duration or timeout: 140.28 seconds
Build info: version: '8.5.0-SNAPSHOT', revision: 'dd175a8f1d9977592532d2433dae654424e07ce4', time: '2017-11-16 10:21:05'
System info: host: 'SWE-Plexus', ip: '10.0.1.4', 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=07096266-9f85-4713-b139-37a83c3bb219, CLOSE_ALL_WINDOWS=false, browserName=universal, takesScreenshot=true, javascriptEnabled=true, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
Session ID: 07096266-9f85-4713-b139-37a83c3bb219
      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 Script3.run(Script3.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: 'SWE-Plexus', ip: '10.0.1.4', 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 Script3.run(Script3.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.WebDriverException: OCR task has failed : taskId=3 status=ProcessingFailed tries=1
Build info: version: '8.5.0-SNAPSHOT', revision: 'dd175a8f1d9977592532d2433dae654424e07ce4', time: '2017-11-16 10:21:05'
System info: host: 'SWE-Plexus', ip: '10.0.1.4', 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.OcrClient$Waiting.fail(OcrClient.java:122)
      at com.workfusion.desktop.driver.ocr.impl.OcrClient.waitCompletion(OcrClient.java:106)
      at com.workfusion.desktop.driver.ocr.Ocr.proccessImage(Ocr.java:52)
      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.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      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)

#5
Error executing OcrAction
      com.workfusion.studio.rpa.recorder.model.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=7,name=Optional[OcrAction],parent=-2,nextSibling=8,arguments=ActionArguments[varName=[ocrvalue],imageName=[C:\\Users\\smailymadhurip\\workfusion-workspace\\rpae_project\\OCRrecordingPDF-1514893737369\\1514894864756-anchor-1514894864782.apng],fullImageName=[1514894864756.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],varType=[java.lang.String],offsetY=[-5],delay=[0],width=[182],actionDetails=[(to 'ocrvalue' rectangle 0 x -5)],height=[78],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: OCR task has failed : taskId=12 status=ProcessingFailed tries=1
    Command duration or timeout: 164.28 seconds
    Build info: version: '8.5.0-SNAPSHOT', revision: 'dd175a8f1d9977592532d2433dae654424e07ce4', time: '2017-11-16 10:21:05'
    System info: host: 'MTLP-162', ip: '172.16.123.9', 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=a08ba478-8afc-4e6f-8e62-111041beeee2, CLOSE_ALL_WINDOWS=false, browserName=universal, takesScreenshot=true, javascriptEnabled=true, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
    Session ID: a08ba478-8afc-4e6f-8e62-111041beeee2
          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 Script7.run(Script7.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: 'MTLP-162', ip: '172.16.123.9', 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 Script7.run(Script7.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.WebDriverException: OCR task has failed : taskId=12 status=ProcessingFailed tries=1
    Build info: version: '8.5.0-SNAPSHOT', revision: 'dd175a8f1d9977592532d2433dae654424e07ce4', time: '2017-11-16 10:21:05'
    System info: host: 'MTLP-162', ip: '172.16.123.9', 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.OcrClient$Waiting.fail(OcrClient.java:122)
          at com.workfusion.desktop.driver.ocr.impl.OcrClient.waitCompletion(OcrClient.java:106)
          at com.workfusion.desktop.driver.ocr.Ocr.proccessImage(Ocr.java:52)
          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.GeneratedMethodAccessor57.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)

Please help…


#6

Even I am facing same problem…Though OCR is in running state.
RPA Version :- 1.1.8
OCR Version :- 8.4.3


#7

Hi,
I am trying to create a process to read pdf file and save data in text file but when I try to open pdf file I am getting error

> Error executing OcrAction
>   com.workfusion.studio.rpa.recorder.model.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=7,name=Optional[OcrAction],parent=-1,nextSibling=8,arguments=ActionArguments[varName=[name],imageName=[C:\\Users\\nmahajan\\workfusion-workspace\\rpae_project\\recording-1514873777018\\1514877242143-anchor-1514877242205.apng],fullImageName=[1514877242143.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],offsetX=[280],varType=[java.lang.String],offsetY=[415],delay=[0],width=[202],actionDetails=[(to 'name' rectangle 280 x 415)],height=[40],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: Image does not found : 1514877242143-anchor-1514877242205.apng
> Command duration or timeout: 3.65 seconds
> Build info: version: '8.5.0-SNAPSHOT', revision: 'dd175a8f1d9977592532d2433dae654424e07ce4', time: '2017-11-16 10:21:05'
> System info: host: '6L92F12', ip: '10.110.8.46', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
> Driver info: com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper
> Capabilities [{imageSimilarityThreshold=0.8, webdriver.remote.sessionid=b0f075ba-0831-4468-9a10-3029b41761d1, CLOSE_ALL_WINDOWS=false, browserName=universal, takesScreenshot=true, javascriptEnabled=true, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
> Session ID: b0f075ba-0831-4468-9a10-3029b41761d1
>       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.ImageElement.findImageRectangle(ImageElement.java:181)
>       at com.workfusion.rpa.helpers.ImageElement.getRect(ImageElement.java:85)
>       at com.workfusion.rpa.helpers.UiElement.getRect(UiElement.java:1012)
>       at org.openqa.selenium.WebElement$getRect.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:117)
>       at Script8.run(Script8.groovy:1)
>       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: '6L92F12', ip: '10.110.8.46', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', 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.ImageElement.findImageRectangle(ImageElement.java:181)
>       at com.workfusion.rpa.helpers.ImageElement.getRect(ImageElement.java:85)
>       at com.workfusion.rpa.helpers.UiElement.getRect(UiElement.java:1012)
>       at org.openqa.selenium.WebElement$getRect.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:117)
>       at Script8.run(Script8.groovy:1)
>       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: java.util.NoSuchElementException: Image does not found : 1514877242143-anchor-1514877242205.apng
>       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.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
>       at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
>       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
>       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
>       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
>       at Script1$1.call(Script1.groovy:12)
>       at Script1$1.call(Script1.groovy)
>       at com.workfusion.common.utils.SynchUtils.withFocusLock(SynchUtils.java:47)
>       at com.workfusion.common.utils.SynchUtils$withFocusLock.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:133)
>       at Script1.run(Script1.groovy:5)
>       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.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       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)

Although I have captured image correctly.
Is there any other way to extract data ?

How can I read directly pdf file using file and folder action?


#8

Please check if the OCR reader is running.

image

Also check if the Bot Manager is running.

Regards,
Hassan


#9

both are running


#10

even if i try simplest process of opening window (pdf file already open)… read data and save it to txt file… its throwing same error.

OCR1


#11

Please go through this URL: https://kb.workfusion.com/display/RPAe/OCR. I guess there is some issue with the anchor marking. I had the same issue when i was not marking the anchor properly.

Here I have made a OCR recorder.
image

Regards,
Hassan


#12

@hassanjamshaid . I have gone through reference link and video tutorial . There are only two steps to read data from pdf

  1. capture anchor marking , which i have selected topmost line/sentenace
  2. then I selected text i wanted to extract… that all…

Is there anything else?


#13

Yup. There are only 2 steps. Share your image/ pdf if possible. Let me try OCR on it.


#14

@cvo @thoutam.swathi @nmahajanvlEECb @hassanjamshaid @smailymadhurSv

Dear All,
OCR license for RPA Express 1.1.8 has expired. We are releasing a new version with renewed OCR license next week. Hopefully, it will resolve all the above issues.

We are very sorry for inconvenience.
Thank you for your patience.

Alesia


Failed loading FREngine: ABBYY Licensing Service is unavailable: The RPC server is unavailable
#15

@ashapkina , I have replaced licence file but I am still getting same issue.
Image not found


#16

@thoutam.swathi @cvo @smailymadhurSv @prashant_sriFs @nmahajanvlEECb @hassanjamshaid
We have released RPA Express 1.1.9 with a new OCR license (valid till April 1st, 2018).
Please update RPAx and lets us know if these issues still exist when you use the new OCR license.

Thank you,
Alesia