OCR: 406 null [failed reading error content]

Please direct me to the appropriate post if this error has already been explained and solved.
We’ve just installed Workfusion Studio onto a developer’s workstation and are receiving problems using the OCR action under the Actions Library.

“On Image” functions work just fine, but OCR specifically throws a Failed to execute script. 406 null: [failed reading error content] exception and is unable to parse any images for texts.

Please let me know if this is either a license or white listing related problem, or something else entirely. We have not yet published any workflows that require OCR for parsing to the Control Tower.

Thanks,

Hi Martina,

Can you zip and send over OCR logs (default location is C:\RPAExpress\OCR\logs)so we can have a look?

Also, please check that the user has OCR pages left as shown in the troubleshooting guide
https://kb.workfusion.com/display/RPAe/Troubleshooting#expand-ErrorexecutingOcrActionOcrExceptioncannotbefound

process.zip (4.2 MB)

Thank you.
Could you also advise what version of RPA Express you are using and check if there are OCR pages left?

I’m using 2.2.2 and according to our Platform Monitor we still have pages left to go.
I also just received some additional information I’m not sure is necessary.

When we first installed the Studio onto the system it was set up pointing to a trial version of the Control Tower. We have our own RPAExpress licensed version and created a server profile on the Studio that points to it rather than the trial. However, navigating to the Platform Monitor from the machine with Studio to check anything OCR related is a bit unclear–the tray menu is redirecting us to the non-existent trial version of the platform monitor and not the one that reflects our licensed version.

The workstation uses a separate local OCR, not the one used on the server.
Could you check if the local OCR license has pages left?

There is no much info in the logs. Is it possible to share the scrip and the full text of the error so we could try to reproduce this error?

Both versions of the Platform Monitor still says OCR is operational and there are pages remaining. Where would I check the local number of pages available if not from Platform Monitor?

Regardless, here’s what appears from the Studio:

Error executing OcrAction
com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=OcrAction.ftl,id=13,name=Optional[OcrAction],parent=-1,arguments=ActionArguments[varName=[yo],imageName=[C:\Users\martina.romualdo\rpae_project\RPA-DEV2\ocr test\1555941551769-anchor-1555941551819.apng],fullImageName=[1555941551769.png],xsi:type=[recorder:OcrAction, recorder:OcrAction],pollingInterval=[300],active=[true],type=[CONTROL],offsetY=[92],delay=[0],width=[383],actionDetails=[(to ‘yo’ rectangle 383 x 91)],height=[91],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:28)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:15)
at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:152)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:112)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.WebDriverException: Failed to execute script. 406 null: [failed reading error content]
Build info: version: ‘9.2.0.4’, revision: ‘1a10eeeced’, time: ‘2018-11-29T10:44:59.891Z’
System info: host: ‘1475’, ip: ‘31.126.251.197’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
Command duration or timeout: 0 milliseconds
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:216)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:41)
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:741)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:677)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:123)
at com.workfusion.rpa.helpers.Ocr.proccessImage(Ocr.java:43)
at com.workfusion.rpa.helpers.Ocr$proccessImage.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at Script2.run(Script2.groovy:9)
at com.workfusion.studio.rpa.recorder.playback.shell.GroovyShellWrapper.executeScript(GroovyShellWrapper.java:48)
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:33)
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:28)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:15)
at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:152)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:112)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.WebDriverException: Failed to execute script. 406 null: [failed reading error content]
Build info: version: ‘9.2.0.4’, revision: ‘1a10eeeced’, time: ‘2018-11-29T10:44:59.891Z’
System info: host: ‘WPG-1475’, ip: ‘31.126.251.197’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
Build info: version: ‘9.2.0.4’, revision: ‘1a10eeeced’, time: ‘2018-11-29T10:44:59.891Z’
System info: host: ‘1475’, ip: ‘31.126.251.197’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
at com.workfusion.autoit.driver.AutoItDriver.executeScript(AutoItDriver.java:192)
at com.workfusion.universal.driver.UniversalDriver.executeScript(UniversalDriver.java:151)
at org.openqa.selenium.remote.server.handler.ExecuteScript.call(ExecuteScript.java:54)
at org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:41)
at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:133)
at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:205)
at org.openqa.selenium.remote.server.InMemorySession.execute(InMemorySession.java:98)
at org.openqa.selenium.remote.server.WebDriverServlet.lambda$handle$0(WebDriverServlet.java:231)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)

Can you send the recording, too? If you don’t want to share in a public topic, you can send it in a private message.

Not a problem, quite frankly this error happens regardless of project, image, or usage. The following recording has a single action that uses OCR with a couple different images we tried to test it on to no avail.
1546525051731.zip (23.3 KB)

  • Playing this recording works just fine on any other system we’ve installed Studio, I might add.

Thank you. We will test and try to reproduce the error.