Error executing OpenSpreadsheetAction

I am constantly getting this error message while trying to complete the action highlighted in yellow in both RPA Recorder and CT. I modified more than 80% of the script to try to work around the error. It worked as intended for a week and then started acting up again. I added wait time in Advanced actions, increased the timeout period in the hub.json file to 900ms.

Error executing OpenSpreadsheetAction Error executing OpenSpreadsheetAction[id=843,name=Optional[OpenSpreadsheetAction],parent=842,children=[844, 845],arguments=ActionArguments[delay=[1000],timeoutMs=[10000],filePath=[${str_output_template_path}],xsi:type=[recorder:OpenSpreadsheetAction, recorder:OpenSpreadsheetAction],pollingInterval=[300],active=[true],comment=[Open Template file],awaitTimeout=[5000]]]
Caused by: org.openqa.selenium.WebDriverException: Session [f6544517-ba37-4458-8130-6b9ca47985dd] was terminated due to TIMEOUT
Command duration or timeout: 0 milliseconds
Build info: version: ‘’, revision: ‘63553f3f1c’, time: ‘2019-03-15T13:41:27.26Z’
System info: host: ‘GERI850’, ip: ‘’, ‘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.6,{Name=RPA Recorder}, CLOSE_ALL_WINDOWS=false, browserName=universal, javascriptEnabled=true, extra.capabilities.context={“browserType”:“universal”,“startInPrivate”:false,“blockImages”:false,“maximizeOnStartup”:false,“customCapabilities”:{“platform”:“WINDOWS”,“javascriptEnabled”:true,“SEARCH_ALL_WINDOWS”:true,“CLOSE_ALL_WINDOWS”:false,“imageSimilarityThreshold”:“0.6”},“executorId”:{“Name”:“RPA Recorder”}}, platformName=WINDOWS, SEARCH_ALL_WINDOWS=true, platform=WINDOWS}]
Session ID: f6544517-ba37-4458-8130-6b9ca47985dd
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.openqa.selenium.remote.ErrorHandler.createThrowable(
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(
at org.openqa.selenium.remote.HttpCommandExecutor.execute(
at org.openqa.selenium.remote.RemoteWebDriver.execute(
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(
at com.workfusion.rpa.helpers.Excel.openExcel(
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.groovy.reflection.CachedMethod.invoke(
at groovy.lang.MetaMethod.doMethodInvoke(
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrap.invoke(
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(
Caused by: org.openqa.grid.common.exception.GridException: Session [f6544517-ba37-4458-8130-6b9ca47985dd] was terminated due to TIMEOUT
at org.openqa.grid.internal.ActiveTestSessions.getExistingSession(
at org.openqa.grid.internal.Registry.getExistingSession(
at org.openqa.grid.web.servlet.handler.RequestHandler.getSession(
at org.openqa.grid.web.servlet.handler.RequestHandler.process(
at org.openqa.grid.web.servlet.DriverServlet.process(
at org.openqa.grid.web.servlet.DriverServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.seleniumhq.jetty9.servlet.ServletHolder.handle(
at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(
at org.seleniumhq.jetty9.server.session.SessionHandler.doHandle(
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextHandle(
at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(
at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(
at org.seleniumhq.jetty9.server.session.SessionHandler.doScope(
at org.seleniumhq.jetty9.server.handler.ScopedHandler.nextScope(
at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(
at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(
at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(
at org.seleniumhq.jetty9.server.Server.handle(
at org.seleniumhq.jetty9.server.HttpChannel.handle(
at org.seleniumhq.jetty9.server.HttpConnection.onFillable(
at org.seleniumhq.jetty9.util.thread.Invocable.invokePreferred(
at org.seleniumhq.jetty9.util.thread.Invocable$InvocableExecutor.invoke(
at org.seleniumhq.jetty9.util.thread.strategy.EatWhatYouKill.doProduce(
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(
at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$

1 Like

Hi @gstoyanova in your script, do you open a website and then the browser is left open for a long time and you don’t execute any action in it?

As a matter of fact, I do. The reason for that is, I don’t need the sequence that is giving me trouble to be executed at all if the website is not available to scrape data from, so I have the actions nested but I I’ve tried it both ways: nested and as a separate sequence using an if statement with a boolean to determine if the excel actions need to be executed at all or not.

@gstoyanova thank you. According to our support, the website being inactive shouldn’t be an issue in this case. What is the size of the Excel file you open in this action? Also, does it fail every time you run the script or does it run correctly at first and start failing after executing several times?

Thanks @ashapkina. It’s an empty template file (8 KB in size) I need to open, so I can output the results of the 4 For Each loops I run beforehand. The first For Each loop you see in the screenshot iterates through a maximum (could be less, depending on the boolean results from IF statements I use) of 100 rows of data so it finds and collects specific rows I need to output in the empty file. The following 3 loops just aggregate the outputs from the first For Each loop into a single output table variable.

The interesting thing is that I use the same empty template spreadsheet throughout the script: f.ex. earlier in the script, I create a log file and a running work file from it but the bot has no issues opening it up for these actions.

I increased the memory the bot can operate with from the standard 1 GB to 8 GB. I nested Open Spreadsheet in a Retry action and spread the attempts out by 1000 ms but that didn’t work either. In the first For Each loop I have multiple nested IF statements. I thought that may be bogging it down so I un-nested them to no avail (eventually reverted to what you see in the screenshot).

And yes, it fails every time I run it. I also tried using two different template files, with one of them being dedicated just to this action (I don’t use it anywhere else in the script), thinking maybe excel didn’t close out properly during previous Open Spreadsheet actions but I got the error again.

Could you execute the script one more time, wait for it to fail and then send us these logs:

Please also share the script (you cans end it via a personal message).

Thank you.

@ashapkina the script is run on demand when certain conditions are met, so I may not be able to provide the info you need right away. Let’s keep this thread open. Thank you!

1 Like

Thank you @gstoyanova. Sure, we’ll be looking forward to the details from you.

Hi @ashapkina I’ll be closing this thread since the script is rarely run and I ended it up first creating the output spreadsheet from template, then reopen and save data in it. Previously, I had nested actions inside the Open Spreadsheet action, which always led to the situation I described above. Thanks for your time!