Problems with RPA Express on CITRIX

Hi Workfusion,

I have installed RPA Express with the lastes version on a Citrix environment and everything works fine but after I end the CITRIX session then I cannot execute anything.

I get a similar error when I try any other process and it fails in step one, and the error occurs every-time I disconnect from the CITRIX session. If I uninstall RPA Express and install it again then I can execute the process without any problems. However, this is acceptable and will not work going forward.

How to solve this issue?

Here is the error that I get when I do the installation (PS tried with both version 2.3.1 and the latest version but I get the same error).

Error executing OpenURLAction
com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=OpenURLAction.ftl,id=1,name=Optional[OpenURLAction],parent=-1,nextSibling=17,children=[2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16],arguments=ActionArguments[delay=[0],timeoutMs=[10000],xsi:type=[recorder:OpenURLAction, recorder:OpenURLAction],pollingInterval=[300],waitTimeout=[30000],active=[true],type=[IE],url=[http://crm-test.bupl.dk/bupl/main.aspx#529803074],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:81)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:154)
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.SessionNotCreatedException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
Build info: version: ‘9.3.1.0’, revision: ‘ef4b445edf’, time: ‘2019-05-29T11:53:16.301Z’
System info: host: ‘ROBOT01’, ip: ‘10.81.8.250’, os.name: ‘Windows NT (unknown)’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
remote stacktrace:
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.get(RemoteWebDriver.java:390)
at com.workfusion.rpa.helpers.RPA.openIE(RPA.java:569)
at com.workfusion.rpa.helpers.RPA$openIE$0.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:55)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:197)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:209)
at Script2.run(Script2.groovy:10)
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:108)
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:81)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:154)
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.SessionNotCreatedException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
Build info: version: ‘9.3.1.0’, revision: ‘ef4b445edf’, time: ‘2019-05-29T11:53:16.301Z’
System info: host: ‘ROBOT01’, ip: ‘10.81.8.250’, os.name: ‘Windows NT (unknown)’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
remote stacktrace:
Build info: version: ‘9.3.1.0’, revision: ‘ef4b445edf’, time: ‘2019-05-29T11:53:16.301Z’
System info: host: ‘ROBOT01’, ip: ‘10.81.8.250’, os.name: ‘Windows NT (unknown)’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_121’
Driver info: driver.version: UniversalDriver
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.W3CHandshakeResponse.lambda$new$0(W3CHandshakeResponse.java:57)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$getResponseFunction$2(W3CHandshakeResponse.java:104)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$24(ProtocolHandshake.java:359)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:362)
at org.openqa.selenium.remote.server.ServicedSession$Factory.apply(ServicedSession.java:211)
at org.openqa.selenium.remote.server.ActiveSessionFactory.lambda$createSession$16(ActiveSessionFactory.java:171)
at java.util.Optional.map(Optional.java:215)
at org.openqa.selenium.remote.server.ActiveSessionFactory.createSession(ActiveSessionFactory.java:171)
at com.workfusion.universal.factory.UniversalDriverFactory.createDriverSession(UniversalDriverFactory.java:57)
at com.workfusion.universal.factory.UniversalDriverFactory.createDriver(UniversalDriverFactory.java:38)
at com.workfusion.universal.state.UniversalDriverState.lambda$createWebDriverIfNotExists$0(UniversalDriverState.java:120)
at java.util.HashMap.computeIfAbsent(HashMap.java:1126)
at com.workfusion.universal.state.UniversalDriverState.createWebDriverIfNotExists(UniversalDriverState.java:120)
at com.workfusion.universal.driver.UniversalDriver.get(UniversalDriver.java:44)
at org.openqa.selenium.remote.server.handler.GetBrowser.call(GetBrowser.java:43)
at org.openqa.selenium.remote.server.handler.GetBrowser.call(GetBrowser.java:25)
at org.openqa.selenium.remote.server.handler.WebDriverHandler.handle(WebDriverHandler.java:41)
at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:134)
at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:206)
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)

Best regards,
Michael Callisen

Hi @mc1 please see this guide. Make sure that IE is configured correctly.
RPA-Configuring-Internet-Explorer-for-RPA.pdf (301.9 KB)

Hi Ashapkina,

Should I share the file in the image?

Best regards,
Michael Callisen

Please disregard the message about the settings file - it will not work for the latest versions of RPA Express.
You need to make sure that the settings in Internet Explorer are set according to the guide above.

Hi Ashapkina

I have the problem for any process that I execute - even if it’s just a simple hallo world. Hence the problem is not with IE (might also be that) but there is a fundamental problem running RPA Express on Citrix. I guess there is some setting that I need to be aware of.

In case I need to use an older version of RPA Express, then please let me know which version that is then I will test that in stead.

Please let me know what to do for RPA Express to work within Citrix?

Best regards,
Michael Callisen

@mc1 during the installation, IE settings are configured as it is required for RPA. It seems that they are then reset when Citrix is rebooted.
In the folder C:\RPAExpress\RPA\registry, you should have these 2 files:

  • machine-settings
  • user-settings

Run them and then launch RPA Express.
Hope it helps!

1 Like

I tried this but it did not work. Then I tried to install the old version again but that failed as well. In the end I have installed the new version which seams to work (but I did not restart the server), was the bug fixed here?

Best regards,
Michael Callisen

@mc1 it doesn’t look like a bug.
Try adjusting Internet Explorer settings on the Citrix machine manually
according to the guide I shared above, start WorkFusion Studio and play any recording.