Scripts are not executing :(

Product: PowerShell Universal
Version: 1.5.0 (358714472	Thu, 12 Nov 2020 00:35:06 GMT )
Product: Universal Dashboard Latest

as the title says. scripts are not executin in UA.
Made a new script
script is just a simple “get-service”
when i run the script i get this error:

Failed

Error executing job: Value cannot be null. (Parameter ‘s’)

2020-11-13T15:11:08.2588656+02:00 0HM47QM86U2A3:00000005 [INF] Executing endpoint '"UniversalAutomation.VariableController.Get (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:08.2608551+02:00 0HM47QM86U2A3:00000005 [INF] Route matched with "{action = \"Get\", controller = \"Variable\"}". Executing controller action with signature "System.Collections.Generic.IEnumerable`1[UniversalAutomation.Variable] Get()" on controller "UniversalAutomation.VariableController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:08.2622430+02:00 0HM47QM86U2A3:00000005 [INF] Executing ObjectResult, writing value of type '"System.Linq.Enumerable+SelectIListIterator`2[[UniversalAutomation.Variable, UniversalAutomation.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UniversalAutomation.Variable, UniversalAutomation.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"'. (8a1b66c8)
2020-11-13T15:11:08.2650929+02:00 0HM47QM86U2A3:00000005 [INF] Executed action "UniversalAutomation.VariableController.Get (UniversalAutomation)" in 4.1439ms (afa2e885)
2020-11-13T15:11:08.2651515+02:00 0HM47QM86U2A3:00000005 [INF] Executed endpoint '"UniversalAutomation.VariableController.Get (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:08.2654629+02:00 0HM47QM86U2A3:00000005 [INF] Request finished in 366.7393ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:08.2771207+02:00 0HM47QM86U2A2:00000008 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:08.2774432+02:00 0HM47QM86U2A2:00000008 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:08.2774919+02:00 0HM47QM86U2A2:00000008 [INF] Executing endpoint '"UniversalAutomation.VariableController.Get (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:08.2775822+02:00 0HM47QM86U2A2:00000008 [INF] Route matched with "{action = \"Get\", controller = \"Variable\"}". Executing controller action with signature "System.Collections.Generic.IEnumerable`1[UniversalAutomation.Variable] Get()" on controller "UniversalAutomation.VariableController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:08.2777785+02:00 0HM47QM86U2A2:00000008 [INF] Executing ObjectResult, writing value of type '"System.Linq.Enumerable+SelectIListIterator`2[[UniversalAutomation.Variable, UniversalAutomation.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UniversalAutomation.Variable, UniversalAutomation.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"'. (8a1b66c8)
2020-11-13T15:11:08.2783079+02:00 0HM47QM86U2A2:00000008 [INF] Executed action "UniversalAutomation.VariableController.Get (UniversalAutomation)" in 0.6778ms (afa2e885)
2020-11-13T15:11:08.2783503+02:00 0HM47QM86U2A2:00000008 [INF] Executed endpoint '"UniversalAutomation.VariableController.Get (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:08.2784696+02:00 0HM47QM86U2A2:00000008 [INF] Request finished in 355.6579ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:10.0751251+02:00  [INF] Starting groom job. (bad5cbbf)
2020-11-13T15:11:10.0785880+02:00  [INF] Script Update-Acronis.ps1 has a max history of 100 (1463f0e2)
2020-11-13T15:11:10.0812665+02:00  [INF] Script has 0 jobs to delete. (1676cac2)
2020-11-13T15:11:10.0814705+02:00  [INF] Script test.ps1 has a max history of 100 (9a743f90)
2020-11-13T15:11:10.0820616+02:00  [INF] Script has 0 jobs to delete. (1676cac2)
2020-11-13T15:11:10.0838749+02:00  [INF] Groom date is: 10/14/2020 1:11:10 PM (fd96139c)
2020-11-13T15:11:10.0853362+02:00  [INF] Old jobs: 0 (be620771)
2020-11-13T15:11:10.0897810+02:00  [INF] Finished groom job. (ccb4f234)
2020-11-13T15:11:10.1516001+02:00 0HM47QM86U2A2:00000009 [INF] Request starting HTTP/1.1 POST http://coeus/api/v1/script/test.ps1 application/json;charset=UTF-8 70 (ca22a1cb)
2020-11-13T15:11:10.1527393+02:00 0HM47QM86U2A2:00000009 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:10.1963127+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:10.2340568+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:10.2821382+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:10.3301987+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:10.3326428+02:00 0HM47QM86U2A2:00000009 [INF] CORS policy execution failed. (09b6f179)
2020-11-13T15:11:10.3327454+02:00 0HM47QM86U2A2:00000009 [INF] Request origin "http://coeus" does not have permission to access the resource. (a03d560b)
2020-11-13T15:11:10.3389976+02:00 0HM47QM86U2A2:00000009 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:10.3840253+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:10.4292019+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:10.4914410+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:10.5330542+02:00 0HM47QM86U2A2:00000009 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:10.5336128+02:00 0HM47QM86U2A2:00000009 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:10.5337218+02:00 0HM47QM86U2A2:00000009 [INF] Executing endpoint '"UniversalAutomation.ScriptController.InvokeScript (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:10.5398495+02:00 0HM47QM86U2A2:00000009 [INF] Route matched with "{action = \"InvokeScript\", controller = \"Script\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] InvokeScript(System.String, UniversalAutomation.JobContext)" on controller "UniversalAutomation.ScriptController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:10.5676567+02:00 0HM47QM86U2A2:00000009 [INF] Invoking script test.ps1, Identity: AUTO\su-backup-a, Using app token:   (42d53aca)
2020-11-13T15:11:10.6102096+02:00 0HM47QM86U2A2:00000009 [INF] Executing JsonResult, writing value of type '"System.Int64"'. (2f513669)
2020-11-13T15:11:10.6115200+02:00 0HM47QM86U2A2:00000009 [INF] Executed action "UniversalAutomation.ScriptController.InvokeScript (UniversalAutomation)" in 71.5697ms (afa2e885)
2020-11-13T15:11:10.6116740+02:00 0HM47QM86U2A2:00000009 [INF] Executed endpoint '"UniversalAutomation.ScriptController.InvokeScript (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:10.6119272+02:00 0HM47QM86U2A2:00000009 [INF] Request finished in 460.3841ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:10.6531076+02:00  [INF] Job 7 started. (699b3450)
2020-11-13T15:11:10.6847818+02:00  [INF] Starting job using CreateProcessAsUser. (083d07cc)
2020-11-13T15:11:10.6901555+02:00 0HM47QM86U2A2:0000000A [INF] Request starting HTTP/1.1 GET http://coeus/api/v1/job/7/log?t=1605273070673   (ca22a1cb)
2020-11-13T15:11:10.6901559+02:00 0HM47QM86U2A3:00000006 [INF] Request starting HTTP/1.1 GET http://coeus/api/v1/job/7?t=1605273070673   (ca22a1cb)
2020-11-13T15:11:10.6910173+02:00 0HM47QM86U2A2:0000000A [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:10.6910109+02:00 0HM47QM86U2A3:00000006 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:10.8859887+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:10.8898040+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:10.9300103+02:00  [INF] Error executing job 7: Value cannot be null. (Parameter 's')    at System.Runtime.InteropServices.Marshal.SecureStringToBSTR(SecureString s)
   at UniversalAutomation.ProcessHelper.SecureStringToString(SecureString value) in D:\a\universal\universal\src\Universal.Server\Services\JobProcessManager.cs:line 342
   at UniversalAutomation.ProcessHelper.LogInOtherUser(ProcessStartInfo processStartInfo) in D:\a\universal\universal\src\Universal.Server\Services\JobProcessManager.cs:line 321
   at UniversalAutomation.ProcessHelper.StartProcess(ProcessStartInfo processStartInfo) in D:\a\universal\universal\src\Universal.Server\Services\JobProcessManager.cs:line 296
   at UniversalAutomation.JobProcessManager.StartProcessAsNewUser(String powerShellPath, String commandLine, Variable credential) in D:\a\universal\universal\src\Universal.Server\Services\JobProcessManager.cs:line 134
   at UniversalAutomation.JobProcessManager.Start(Job job, ExecutionEnvironment environment, Variable credential) in D:\a\universal\universal\src\Universal.Server\Services\JobProcessManager.cs:line 82
   at UniversalAutomation.ExecutionService.ExecutePowerShell(Script script, IEnumerable`1 parameters, Job job, Schedule schedule, Int32 port, ExecutionCallback callback) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 402
   at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 301
   at UniversalAutomation.ExecutionService.Execute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 159 System.ArgumentNullException (341e5bcc)
2020-11-13T15:11:10.9482111+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:10.9656075+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:10.9968433+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.0185716+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.0640035+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.0668125+02:00 0HM47QM86U2A2:0000000A [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:11.0865752+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.0893461+02:00 0HM47QM86U2A3:00000006 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:11.1131888+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:11.1308742+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:11.1541866+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:11.1817829+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:11.2104284+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.2400091+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.2676136+02:00 0HM47QM86U2A2:0000000A [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.2678578+02:00 0HM47QM86U2A2:0000000A [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:11.2678967+02:00 0HM47QM86U2A2:0000000A [INF] Executing endpoint '"UniversalAutomation.JobController.GetLogOutput (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:11.2696832+02:00 0HM47QM86U2A2:0000000A [INF] Route matched with "{action = \"GetLogOutput\", controller = \"Job\"}". Executing controller action with signature "UniversalAutomation.JobLog GetLogOutput(Int64)" on controller "UniversalAutomation.JobController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:11.2735779+02:00 0HM47QM86U2A2:0000000A [INF] Executing ObjectResult, writing value of type '"UniversalAutomation.JobLog"'. (8a1b66c8)
2020-11-13T15:11:11.2751052+02:00 0HM47QM86U2A2:0000000A [INF] Executed action "UniversalAutomation.JobController.GetLogOutput (UniversalAutomation)" in 5.3747ms (afa2e885)
2020-11-13T15:11:11.2751441+02:00 0HM47QM86U2A2:0000000A [INF] Executed endpoint '"UniversalAutomation.JobController.GetLogOutput (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:11.2752972+02:00 0HM47QM86U2A2:0000000A [INF] Request finished in 585.1803ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:11.2885254+02:00 0HM47QM86U2A3:00000006 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.2888749+02:00 0HM47QM86U2A3:00000006 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:11.2889330+02:00 0HM47QM86U2A3:00000006 [INF] Executing endpoint '"UniversalAutomation.JobController.Get (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:11.2904461+02:00 0HM47QM86U2A3:00000006 [INF] Route matched with "{action = \"Get\", controller = \"Job\"}". Executing controller action with signature "UniversalAutomation.Job Get(Int64)" on controller "UniversalAutomation.JobController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:11.2923800+02:00 0HM47QM86U2A3:00000006 [INF] Executing ObjectResult, writing value of type '"UniversalAutomation.Job"'. (8a1b66c8)
2020-11-13T15:11:11.2927530+02:00 0HM47QM86U2A3:00000006 [INF] Executed action "UniversalAutomation.JobController.Get (UniversalAutomation)" in 2.2516ms (afa2e885)
2020-11-13T15:11:11.2927851+02:00 0HM47QM86U2A3:00000006 [INF] Executed endpoint '"UniversalAutomation.JobController.Get (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:11.2929194+02:00 0HM47QM86U2A3:00000006 [INF] Request finished in 602.7979ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:11.3644881+02:00 0HM47QM86U2A3:00000007 [INF] Request starting HTTP/1.1 GET http://coeus/api/v1/script/test.ps1?t=1605273071355   (ca22a1cb)
2020-11-13T15:11:11.3650316+02:00 0HM47QM86U2A3:00000007 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:11.4544820+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:11.5087283+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:11.5539280+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.6003535+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.6047982+02:00 0HM47QM86U2A3:00000007 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:11.6534103+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:11.6990087+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:11.7364449+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.7731716+02:00 0HM47QM86U2A3:00000007 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.7739765+02:00 0HM47QM86U2A3:00000007 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:11.7740873+02:00 0HM47QM86U2A3:00000007 [INF] Executing endpoint '"UniversalAutomation.ScriptController.Get (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:11.7743623+02:00 0HM47QM86U2A3:00000007 [INF] Route matched with "{action = \"Get\", controller = \"Script\"}". Executing controller action with signature "UniversalAutomation.Script Get(System.String)" on controller "UniversalAutomation.ScriptController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:11.7771862+02:00 0HM47QM86U2A3:00000007 [INF] Executing ObjectResult, writing value of type '"UniversalAutomation.Script"'. (8a1b66c8)
2020-11-13T15:11:11.7780971+02:00 0HM47QM86U2A3:00000007 [INF] Executed action "UniversalAutomation.ScriptController.Get (UniversalAutomation)" in 3.6153ms (afa2e885)
2020-11-13T15:11:11.7781442+02:00 0HM47QM86U2A3:00000007 [INF] Executed endpoint '"UniversalAutomation.ScriptController.Get (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:11.7784333+02:00 0HM47QM86U2A3:00000007 [INF] Request finished in 413.9387ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:11.7840340+02:00 0HM47QM86U2A3:00000008 [INF] Request starting HTTP/1.1 GET http://coeus/api/v1/job/7/parameter?t=1605273071779   (ca22a1cb)
2020-11-13T15:11:11.7848120+02:00 0HM47QM86U2A3:00000008 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:11.8229209+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:11.8591674+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:11.8958547+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:11.9722745+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:11.9767445+02:00 0HM47QM86U2A3:00000008 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:12.0234599+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:12.0622522+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:12.0998095+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:12.1382037+02:00 0HM47QM86U2A3:00000008 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:12.1384753+02:00 0HM47QM86U2A3:00000008 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:12.1385258+02:00 0HM47QM86U2A3:00000008 [INF] Executing endpoint '"UniversalAutomation.JobController.GetParameters (UniversalAutomation)"' (500cc934)
2020-11-13T15:11:12.1408480+02:00 0HM47QM86U2A3:00000008 [INF] Route matched with "{action = \"GetParameters\", controller = \"Job\"}". Executing controller action with signature "System.Collections.Generic.IEnumerable`1[UniversalAutomation.JobParameter] GetParameters(Int64)" on controller "UniversalAutomation.JobController" ("UniversalAutomation"). (122b2fdf)
2020-11-13T15:11:12.1419001+02:00 0HM47QM86U2A3:00000008 [INF] Executing ObjectResult, writing value of type '"UniversalAutomation.JobParameter[]"'. (8a1b66c8)
2020-11-13T15:11:12.1427036+02:00 0HM47QM86U2A3:00000008 [INF] Executed action "UniversalAutomation.JobController.GetParameters (UniversalAutomation)" in 1.7944ms (afa2e885)
2020-11-13T15:11:12.1427374+02:00 0HM47QM86U2A3:00000008 [INF] Executed endpoint '"UniversalAutomation.JobController.GetParameters (UniversalAutomation)"' (99874f2b)
2020-11-13T15:11:12.1428516+02:00 0HM47QM86U2A3:00000008 [INF] Request finished in 358.8542ms 200 application/json; charset=utf-8 (791a596a)
2020-11-13T15:11:19.7934180+02:00 0HM47QM86U2A3:00000009 [INF] Request starting HTTP/1.1 GET http://coeus/api/v1/license/feature?t=1605273079751   (ca22a1cb)
2020-11-13T15:11:19.7943700+02:00 0HM47QM86U2A3:00000009 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:19.8395295+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:19.8780439+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:19.9182587+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:19.9565853+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:19.9601593+02:00 0HM47QM86U2A3:00000009 [INF] Evaluting claims for AUTO\su-backup-a (68e34098)
2020-11-13T15:11:19.9978629+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Administrator (7d91467a)
2020-11-13T15:11:20.0397439+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Operator (b45f973f)
2020-11-13T15:11:20.0840349+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Reader (f27a6e1d)
2020-11-13T15:11:20.1235247+02:00 0HM47QM86U2A3:00000009 [INF] AUTO\su-backup-a is part of role Execute (6dfeff8f)
2020-11-13T15:11:20.1239892+02:00 0HM47QM86U2A3:00000009 [INF] Authorization was successful. (0d575a54)
2020-11-13T15:11:20.1240670+02:00 0HM47QM86U2A3:00000009 [INF] Executing endpoint '"Universal.Server.Controllers.LicenseController.GetLicensedFeatures (Universal.Server)"' (500cc934)
2020-11-13T15:11:20.1243685+02:00 0HM47QM86U2A3:00000009 [INF] Route matched with "{action = \"GetLicensedFeatures\", controller = \"License\"}". Executing controller action with signature "System.Collections.Generic.IEnumerable`1[UniversalAutomation.Common.Interfaces.Feature] GetLicensedFeatures()" on controller "Universal.Server.Controllers.LicenseController" ("Universal.Server"). (122b2fdf)
2020-11-13T15:11:20.1251207+02:00 0HM47QM86U2A3:00000009 [INF] Executing ObjectResult, writing value of type '"System.Collections.Generic.List`1[[UniversalAutomation.Common.Interfaces.Feature, UniversalAutomation.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"'. (8a1b66c8)
2020-11-13T15:11:20.1261678+02:00 0HM47QM86U2A3:00000009 [INF] Executed action "Universal.Server.Controllers.LicenseController.GetLicensedFeatures (Universal.Server)" in 1.7148ms (afa2e885)
2020-11-13T15:11:20.1262105+02:00 0HM47QM86U2A3:00000009 [INF] Executed endpoint '"Universal.Server.Controllers.LicenseController.GetLicensedFeatures (Universal.Server)"' (99874f2b)
2020-11-13T15:11:20.1268640+02:00 0HM47QM86U2A3:00000009 [INF] Request finished in 333.4596ms 200 application/json; charset=utf-8 (791a596a)

I’ll take a look at this today.

might this be the problem ?

image

i’m lacking a few files in the .universal folder.

1.5 doesn’t create the files if it doesn’t need to so you’ll see less file by default than in 1.4.

What’s a little strange is that it’s attempting to launch the job as another user but you don’t have any variables defined so I don’t know how you would be selecting alternate credentials. You’re just invoking this in the Admin Console?

yes.
from the admin console -> scripts ->add new script -> edit the script and just typed get-service saved the script and try to run.

Failed
Error executing job: Value cannot be null. (Parameter ‘s’)

Tried with other scripts that i had laying around. still no luck :frowning:

Update:
I have created a credential variable in the vault and when executing the script with the “run as” and select the that user, it works.

Update:
Solved by upgrading to a newer version. Did a clean install (deleted UniversalDashboard and Universal Automation folders from program data)

I hate to bring an old post like this up, but the described problem is happening to me.

PSU 1.1.15 (been through upgrades)
Service hosted (with domain service account setup)
Windows 2019 server

I’m trying to execute a script and am met with error:

Error executing job: Value cannot be null. (Parameter 'value')

This was trying to just utilized the Default entry in the run as box when starting it. I tried mihai’s recommendation and setup a credential secret for the service account but the error is the same.

bits from the log for when it was attempted:

2021-05-28T10:53:59.2636273-05:00  [INF] Job 58 started. (46d99a82)
2021-05-28T10:53:59.3284513-05:00  [DBG] Job 58 bound to port 54582. (f7308ff8)
2021-05-28T10:53:59.3855277-05:00  [INF] Error executing job 58: Value cannot be null. (Parameter 'value')    at System.Boolean.Parse(String value)
   at UniversalAutomation.ExecutionService.ExecutePowerShell(Script script, IEnumerable`1 parameters, Job job, Schedule schedule, Int32 port, ExecutionCallback callback) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 426
   at UniversalAutomation.ExecutionService.TryExecute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 318
   at UniversalAutomation.ExecutionService.Execute(Job job, Schedule schedule) in D:\a\universal\universal\src\UniversalAutomation\Services\ExecutionService.cs:line 178 System.ArgumentNullException (910e8d84)

This is due to an old appsettings.json being used. You need to add these to your appsettings.json.

  "UniversalAutomation": {
    "JobHandshakeTimeout": 5,
    "JobDebugging": false,
    "ContinueJobOnServerStop": false
  },

Thanks. I’m assuming service restart too?

Yep. Should be up and running after the restart

That fixed work for that error, now i’m met with:
Error executing job: A required privilege is not held by the client.

I assume you are trying to run as another user for that script? This error typically happens when either the service account or the run as account don’t have their privileges added. That said, since this worked before I’m surprised that you are getting this error.

Can you just verify that that’s the case?

That was it. could have sworn i had set those settings up, but that might have been in the lab. This is our first testing and implementation of the automation section in production :smiley:

1 Like