- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 02:13 AM
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)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 02:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 03:36 AM
HI @ManiBitra ,
I trust you are doing great.
It seems like this issue is due to cross scope privileges are missing between the scope of sub flow and your fix script.
Please try to add the cross scope privilliage record and it will resolve your issue.
Please mark the answer correct if it was helpful.
Regards,
Amit Gujarathi
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2024 11:18 AM
Were you able to resolve this?