Hi

I have used this in a previous version (4 something). However, my company updated to 6.0.1.0-386 and now I am getting this:

Code:
var strConn = "testOra";
var strInSQL = 'select count(1) from arschema';
var InxArr = fireToDB(strConn, strInSQL);
Alert(InxArr[0][0]);
When I click Test Script or Run it, I get the following:

Code:
2018/12/14 14:44:26 - Modified Java Script Value.0 - ERROR (version 6.0.1.0-386, build 1 from 2017-11-24 23.33.08 by buildadm) : Unexpected error
2018/12/14 14:44:26 - Modified Java Script Value.0 - ERROR (version 6.0.1.0-386, build 1 from 2017-11-24 23.33.08 by buildadm) : org.pentaho.di.core.exception.KettleValueException: 
2018/12/14 14:44:26 - Modified Java Script Value.0 - Javascript error: 
2018/12/14 14:44:26 - Modified Java Script Value.0 - org.mozilla.javascript.EvaluatorException: Database connection not found: testOra (script#5) (script#5)
2018/12/14 14:44:26 - Modified Java Script Value.0 - 
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:474)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:540)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at java.lang.Thread.run(Unknown Source)
2018/12/14 14:44:26 - Modified Java Script Value.0 - Caused by: org.mozilla.javascript.EvaluatorException: org.mozilla.javascript.EvaluatorException: Database connection not found: testOra (script#5) (script#5)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.Context.reportRuntimeError(Context.java:945)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1001)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesAddedFunctions.fireToDB(ScriptValuesAddedFunctions.java:540)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at java.lang.reflect.Method.invoke(Unknown Source)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.gen.script_34._c_script_0(script:5)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.gen.script_34.call(script)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3178)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.gen.script_34.call(script)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.mozilla.javascript.gen.script_34.exec(script)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:387)
2018/12/14 14:44:26 - Modified Java Script Value.0 -     ... 3 more
2018/12/14 14:44:26 - Modified Java Script Value - PREVIEW - Transformation detected one or more steps with errors.
2018/12/14 14:44:26 - Modified Java Script Value - PREVIEW - Transformation is killing the other steps!
The testOra connection is working fine in a table input. I have created a second test connection and the same error appears.

I've searched the Jira and couldn't find anything. Any ideas please?

Thanks
Danny