Skip to content

"Generate Random NeedIt Records" access violation #98

@OugiCodes4Work

Description

@OugiCodes4Work

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions