OCR stopped working - There are no licenses error

Hi all,

OCR was working fine until a few days ago when started to report the following error in the OCR log

2018-07-01 22:02:26 [] DEBUG com.wf.ocr.OcrTaskApplication - Start and use args=[C:\Users\XXX\AppData\Local\Temp\abbyy_task-ACTIVE_LICENSE7016137121971949545\input-8362965487072701285.json] 2018-07-01 22:02:26 [] DEBUG com.wf.ocr.OcrTaskApplication - Input file stats: type=config file index=0 size=1497 format=null isFile=true canRead=true path=C:\Users\XXX\AppData\Local\Temp\abbyy_task-ACTIVE_LICENSE7016137121971949545\input-8362965487072701285.json 2018-07-01 22:02:27 [] ERROR com.wf.ocr.a.p - failed with DestroyFailedException 2018-07-01 22:02:27 [] ERROR com.wf.ocr.a.p - failed with DestroyFailedException 2018-07-01 22:02:27 [] DEBUG com.wf.ocr.a.w - Initializing Engine...... 2018-07-01 22:02:28 [] ERROR com.wf.ocr.a.x - activeLicense failed com.wf.ocr.utils.EngineLoadException: Failed loading FREngine: There are no licenses on XXX at com.wf.ocr.utils.EnginePatch.LoadEx(EnginePatch.java:42) at com.wf.ocr.a.k.a(EngineHelper.java:75) at com.wf.ocr.a.k.c(EngineHelper.java:117) at com.wf.ocr.a.C.withEngine(TaskEngineService.java:35) at com.wf.ocr.service.LicenseService.getActiveLicense(LicenseService.java:31) at com.wf.ocr.a.z.getActiveLicense(RpaLicenseService.java:28) at com.wf.ocr.a.x.a(OcrTaskController.java:121) at com.wf.ocr.a.x.a(OcrTaskController.java:67) at com.wf.ocr.OcrTaskApplication.main(OcrTaskApplication.java:42) Caused by: com.abbyy.FREngine.EngineException: There are no licenses on XXX at com.abbyy.FREngine.Engine.load(Native Method) at com.wf.ocr.utils.EnginePatch.LoadEx(EnginePatch.java:39) ... 8 common frames omitted 2018-07-01 22:03:26 [] DEBUG com.wf.ocr.OcrTaskApplication - Start and use args=[C:\Users\XXX\AppData\Local\Temp\abbyy_task-ACTIVE_LICENSE3783746662521619014\input-4337269467698750765.json] 2018-07-01 22:03:26 [] DEBUG com.wf.ocr.OcrTaskApplication - Input file stats: type=config file index=0 size=1497 format=null isFile=true canRead=true path=C:\Users\XXX\AppData\Local\Temp\abbyy_task-ACTIVE_LICENSE3783746662521619014\input-4337269467698750765.json 2018-07-01 22:03:27 [] ERROR com.wf.ocr.a.p - failed with DestroyFailedException 2018-07-01 22:03:27 [] ERROR com.wf.ocr.a.p - failed with DestroyFailedException 2018-07-01 22:03:27 [] DEBUG com.wf.ocr.a.w - Initializing Engine...... 2018-07-01 22:03:28 [] ERROR com.wf.ocr.a.x - activeLicense failed com.wf.ocr.utils.EngineLoadException: Failed loading FREngine: There are no licenses on PH1 at com.wf.ocr.utils.EnginePatch.LoadEx(EnginePatch.java:42) at com.wf.ocr.a.k.a(EngineHelper.java:75) at com.wf.ocr.a.k.c(EngineHelper.java:117) at com.wf.ocr.a.C.withEngine(TaskEngineService.java:35) at com.wf.ocr.service.LicenseService.getActiveLicense(LicenseService.java:31) at com.wf.ocr.a.z.getActiveLicense(RpaLicenseService.java:28) at com.wf.ocr.a.x.a(OcrTaskController.java:121) at com.wf.ocr.a.x.a(OcrTaskController.java:67) at com.wf.ocr.OcrTaskApplication.main(OcrTaskApplication.java:42) Caused by: com.abbyy.FREngine.EngineException: There are no licenses on XXX at com.abbyy.FREngine.Engine.load(Native Method) at com.wf.ocr.utils.EnginePatch.LoadEx(EnginePatch.java:39) ... 8 common frames omitted

and on the Platform Monitor, it reports the following error

Failed to load the OCR license: Failed retrieving ACTIVE_LICENSE information: Failed loading FREngine: There are no licenses on XXX

I have removed reinstalled RPA express today again several times following recommendations /solutions offered in other threads with similar error. I have even used a different email account to download a brand new install and activate a new OCR engine license with 10,000 pages to scan yet the same error still occurred.

I’m using version 2.0.1.552

I’d appreciate a quick response as I can no longer run any bots.

Thanks,
-Hany Mesha

Hi Hany,

Do you have RPA Express installed on your local machine or on a virtual machine?
Also, please send your OCR logs.

Good Day,

Have the same issue - OCR in my process run 100% on Saturday and now its giving issues?

Please see issue log: Don’t understand what is says? Please help

Error executing OcrAction
com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=896,name=Optional[OcrAction],parent=-27,nextSibling=897,arguments=ActionArguments[varName=[count_image_ocr],imageName=[C:\Users\A212184\workfusion-workspace\rpae_project\COSS Stats Bot Bank Statement\1528870642218-anchor-1528870642232.apng],fullImageName=[1528870642218.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],type=[CONTROL],offsetX=[39],offsetY=[-2],delay=[0],width=[15],actionDetails=[(to ‘count_image_ocr’ rectangle 15 x 14)],height=[14],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: ‘42732JNBPBB533W’, ip: ‘10.7.150.118’, 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.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 Script102.run(Script102.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 Script102.run(Script102.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)

Good Day,

I saw now - it says no license for the computer - on my Work laptop is says license fine - but on the virtual machine where we run the bots it says that machine has no license

How do I fix this? All my schedules using OCR is failing now - and its running Business Volume - Creating chaos now

Please help urgently

Thanks

@wilmar_meyer2K the current OCR license doesn’t work on virtual machines.
See the topic below for reference:

We are working on expanding the license. We expect to introduce the new license working on VMs in one of the next releases.

I actual dont think its a virtual machine - Its a normal desktop that I installed the RPA express on. But I use my User ID for both my laptop and the Desktop box next to me - For this machine it worked until Saturday and now its saying the license issue - When I go the the OCR -task file in my laptop is says nothing about the issue, but when looking in the 2nd PC, desktop where we run the bots from - in the OCR task file is where is says no license and assume this is way it fails??

This machine is not a virtual machine - Desktop computer with the RPA express on - So dont know if it gives this issue becuase installed on two computers and running with same user ID A212184

With the log for saturday it show successful 30 June 2018 it shows successful:

But this morning the 02/07/2018 Monday gave license issue? Why? :frowning: how do we fix this

Please help?

Running the process on same machine that was successful Saturday 30 Jun and now failing on Monday? Have changed anything?

@wilmar_meyer2K please zip your OCR logs from C:\RPAExpress\OCR\logs and share here.

OCR Logs Desktop RPA EXpress.zip (2.8 MB)

Was working for 5 days and now only today started giving issues - Thanks for the help - very urgent

@wilmar_meyer2K @hmesha the current license expired on July 1. I’m very sorry for confusion.

We will release a new version with an updated license on July 4-5.

So this means that we need to download the new version every time the license expires and reinstall RPA express? How often does the OCR license expire?

Thanks

The free license duration is usually 2-3 months. The new license will be valid till September 1.

Good day,

I know that I’m arriving late to the party as someone else experiencing similar issue took over the thread. Probably it’s the same issue and the renew of the license in the next few days probably will solve the problem. Nonetheless I wanted to reply to your original question and provide the needed info in case that present a different angle to the problem.

RPA Express is installed on physical machine and has been working fine until this error started to show up in the last number of days.

Attached, please find the logs of the OCR.

Also, the following screenshot is what shows up in the platform monitor screen.

ocr-task.log (1.2 MB)
ocr-rest-error.log (288.8 KB)
ocr-rest.log (5.2 MB)

Thanks,
-Hany

I have the same problem with 2.0.1 version . Earlier on Saturday OCR was working fine and on Monday its stoped working. Here are the log files.
ocr-task.log (39.7 KB)
ocr-rest.log (174.1 KB)
ocr-rest-error.log (7.0 KB)

@aayush1997g @hmesha this look like the same issue - the OCR license has expired.
We will release a new version with new license within a couple of days.

Please Inform when can i download the new version. Thank you.

@aayush1997g we are introducing a new download process in this version, so you will need to register on the website using the same email to download it.
Once the new version is out, I’'ll post an update on the forum.