Getting error when calling subflow from script in scoped app

ManiBitra
Tera Contributor

Hi,

 

I am receiving below error while trying to get output from sub flow using script. when I am testing sub flow directly it is completing successfully and giving me the output.

 

Any help would be appreciated.

 

Below is the error:

 

Evaluator.evaluateString() problem: java.lang.IllegalStateException: Recording privilege requests only allowed for sys_apps:         com.glide.sys.fencing.privilege.CustomAppPrivilegeRecorder.recordPrivilege(CustomAppPrivilegeRecorder.java:12)
        com.glide.sys.fencing.privilege.PrivilegeProvider.updateDatabase(PrivilegeProvider.java:58)
        com.glide.sys.fencing.privilege.PrivilegeProvider.recordPrivilege(PrivilegeProvider.java:45)
        com.glide.sys.fencing.privilege.CrossScopePrivilege.recordAccessInDatabase(CrossScopePrivilege.java:148)
        com.glide.sys.fencing.privilege.CrossScopePrivilege.requestAccess(CrossScopePrivilege.java:77)
        com.glide.script.fencing.ScopedScriptableObject.checkCrossScopePrivileges(ScopedScriptableObject.java:194)
        com.glide.script.fencing.ScopedScriptableObject.shouldAllow(ScopedScriptableObject.java:109)
        com.glide.script.fencing.ScopedScriptableObject.get(ScopedScriptableObject.java:77)
        com.glide.script.fencing.ScopedScriptableObject.get(ScopedScriptableObject.java:74)
        org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2097)
        org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2394)
        org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2380)
        org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1349)
        org.mozilla.javascript.Interpreter.interpret(Interpreter.java:830)
        org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:160)
        com.glide.caller.gen._refname_.call(Unknown Source)
        com.glide.script.ScriptCaller.call(ScriptCaller.java:18)

 

 

1 ACCEPTED SOLUTION

@ManiBitra 

 

please check the script in inputs are passed correctly to the subflow are not.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

View solution in original post

6 REPLIES 6

priyasunku
Kilo Sage

@ManiBitra  There might be issus in the script from where you are calling the subflow. Please check the script properly.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

Hi Priya,

 

For testing purpose I am currently calling it from fix script.

@ManiBitra 

 

please check the script in inputs are passed correctly to the subflow are not.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

@ManiBitra  please mark my answer as correct if it helped you.