Hello all,
we are facing a strange issue.
Running a script with a run as credential, goes smoothly, but running the same script form the schedule tab, using the play button, lead to the following error on the job.
Error executing job: Object reference not set to an instance of an object.
Maybe this could help:
2023-09-13 22:43:07.741 +02:00 [INF] Error executing job 207: Object reference not set to an instance of an object. at UniversalAutomation.Services.GrpcExecutionService.<>c__DisplayClass11_0.b__1(String role) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Automation\GrpcExecutionService.cs:line 50
at System.Linq.Enumerable.Any[TSource](IEnumerable1 source, Func2 predicate)
at UniversalAutomation.Services.GrpcExecutionService.ExecuteScript(Job job, ExecutionEnvironment environment, ExecuteScriptRequest request, ExecutionCallback executionCallback) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Automation\GrpcExecutionService.cs:line 50
at UniversalAutomation.ExecutionService.ExecutePowerShell(Script script, IEnumerable`1 parameters, Job job, Schedule schedule, ExecutionCallback callback) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 728
at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 372
at UniversalAutomation.ExecutionService.Execute(Job job, Schedule schedule) in C:\actions-runner_work\universal\universal\src\Universal.Server\Services\Automation\ExecutionService.cs:line 215 System.NullReferenceException
2023-09-13 22:43:07.747 +02:00 [DBG] ParentJobId: 0