Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Generate Random NeedIt Records" access violation #98

Open
OugiCodes4Work opened this issue May 15, 2024 · 0 comments
Open

"Generate Random NeedIt Records" access violation #98

OugiCodes4Work opened this issue May 15, 2024 · 0 comments

Comments

@OugiCodes4Work
Copy link

When trying to create random NeedIt records to follow this tutorial, I get this error:

Evaluator.evaluateString() problem: com.glide.script.fencing.CrossScopeAccessNotAllowedException: Access to GlideRecord.newRecord from scope x_58872_needit not allowed: com.glide.script.fencing.ScopedScriptableObject.checkCrossScopePrivileges(ScopedScriptableObject.java:198)
com.glide.script.fencing.ScopedScriptableObject.shouldAllow(ScopedScriptableObject.java:109)
com.glide.script.fencing.WrappedScriptableObject.get(WrappedScriptableObject.java:57)
com.glide.script.fencing.ScopedGlideRecord.get(ScopedGlideRecord.java:60)
org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2283)
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2687)
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2673)
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1552)
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1030)
org.mozilla.javascript.InterpretedFunction.lambda$call$0(InterpretedFunction.java:161)
com.glide.caller.gen._refname_.call(Unknown Source)
com.glide.script.ScriptCaller.call(ScriptCaller.java:22)
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:725)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:4024)
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:173)
com.glide.script.ScriptEvaluator.execute(ScriptEvaluator.java:415)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:226)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:142)
com.glide.script.ScriptEvaluator.evaluateString(ScriptEvaluator.java:133)
com.glide.script.Evaluator.evaluateString(Evaluator.java:104)
com.snc.automation.ScriptJob.executeInSingleDomain(ScriptJob.java:77)
com.snc.automation.ScriptJob.execute(ScriptJob.java:47)
com.glide.schedule.JobExecutor.lambda$executeJob$1(JobExecutor.java:194)
com.glide.schedule.JobExecutor.executeJob(JobExecutor.java:197)
com.glide.schedule.JobExecutor.execute(JobExecutor.java:177)
com.glide.schedule.JobExecutor.execute(JobExecutor.java:167)
com.glide.schedule_v2.SchedulerWorkerThread.executeJob(SchedulerWorkerThread.java:577)
com.glide.schedule_v2.SchedulerWorkerThread.lambda$process$2(SchedulerWorkerThread.java:396)
com.glide.worker.TransactionalWorkerThread.executeInTransaction(TransactionalWorkerThread.java:35)
com.glide.schedule_v2.SchedulerWorkerThread.process(SchedulerWorkerThread.java:396)
com.glide.schedule_v2.SchedulerWorkerThread.run(SchedulerWorkerThread.java:172)

My repository did not have that scheduled script execution, so I tracked down the code in the source and created a new scheduled script execution in my instance. However, even though I've checked and double-checked that Studio is in the NeedIt scope, I can't get it to run without that access violation.

What settings should I check and alter to make sure it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant