OCR not working

Hi Expert,

OCR is not working it. Earlier it was working. Getting following error.

Please help.

Thanks,

Khalid Ansari

Error executing OcrAction
  com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=6,name=Optional[OcrAction],parent=2,arguments=ActionArguments[varName=[invoicenumber],imageName=[D:\\workfusion-workspace\\rpae_project\\OCRtest\\1529046804364-anchor-1529046804540.apng],fullImageName=[1529046804364.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],type=[CONTROL],offsetX=[624],offsetY=[46],delay=[0],width=[76],actionDetails=[(to 'invoicenumber' rectangle 76 x 18)],height=[18],awaitTimeout=[5000]]]
      at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:54)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)
      at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)
      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: java.lang.ClassNotFoundException: com.workfusion.desktop.driver.ocr.impl.OcrException cannot be found by com.workfusion.studio.dependencies.rpa-api_9.0.0
Build info: version: '9.0.0.1', revision: 'e3a0fd7071', time: '2018-05-11T11:35:20.018Z'
System info: host: 'MUM-KHALIDA', ip: '192.168.6.73', 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.internal.CustomWrapper.isCustomWrapperElement(CustomWrapper.java:44)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:218)
      at org.openqa.selenium.remote.JsonToBeanConverter.convertMap(JsonToBeanConverter.java:351)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:228)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:48)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:149)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:48)
      at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:82)
      at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:45)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:656)
      at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:592)
      at com.workfusion.rpa.helpers.RPA.executeScript(RPA.java:864)
      at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:930)
      at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:111)
      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 Script6.run(Script6.groovy:6)
      at com.workfusion.studio.rpa.recorder.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:90)
      at com.workfusion.studio.rpa.recorder.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:35)
      at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)
      at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)
      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.lang.ClassNotFoundException: com.workfusion.desktop.driver.ocr.impl.OcrException cannot be found by com.workfusion.studio.dependencies.rpa-api_9.0.0
      at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
      at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
      at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at org.openqa.selenium.remote.internal.CustomWrapper.isCustomWrapperElement(CustomWrapper.java:42)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:218)
      at org.openqa.selenium.remote.JsonToBeanConverter.convertMap(JsonToBeanConverter.java:351)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:228)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:48)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:149)
      at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:48)
      at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:82)
      at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:45)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:656)
      at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:592)
      at com.workfusion.rpa.helpers.RPA.executeScript(RPA.java:864)
      at com.workfusion.rpa.helpers.RPA.executeGroovyScript(RPA.java:930)
      at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:111)
      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 Script6.run(Script6.groovy:6)
      at com.workfusion.studio.rpa.recorder.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:90)
      at com.workfusion.studio.rpa.recorder.playback.player.PlaybackContext.executeScript(PlaybackContext.java:65)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:35)
      at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:30)
      at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:17)
      at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:53)
      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)

Hi Khalid, please send OCR logs from C:\RPAExpress\OCR\logs

Hi,

Thanks for reply. Log is attachedlogs.zip (2.5 MB)

Thanks,
Khalid

Thank you.

You have used up the 1,000 available OCR pages, that’s why it is not working anymore.

We will have a new license with new 1,000 pages in RPA Express version that will be released in July.

Thanks for reply.

Just for clarification. If i uninstall and re-install it. Will i be able to run it or i need to wait till July.

Thanks,

Khalid

No, if you reinstall it, the page count will still be the same.
You will need to wait till July to renew it.

Thanks for prompt reply.