Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
janus2021
Contributor III
Contributor III

Error then running skript in Qmc: script trying to Disble schedulars capability on RIM-nodes.

Hello.
Has this script that enable the RIM nodes to be able to run scheduled jobs and also sets the RIM nodes back to not be able to run scheduled jobs. For simplicity's sake, I've cut everything together in a script.

This script works perfectly when irun the script manually on the Central Node but when I schedule in qmc, the "Enable" part of the script works fine but I get Error when I run "Disable" script in task in QMC.

Anyone have any tips on what might be causing the error?

 

Powershell script:

param (
[string] $User_Name = "EXT\fi_api",
[string] $Central_Node = $(hostname),
)

#Get valid certificates on the server.
gci cert:\CurrentUser\My | where { $_.Issuer -like "CN=$Central_Node*" -and $_.FriendlyName -eq "QlikClient" } | Connect-Qlik $Central_Node -TrustAllCerts -username $User_Name -ErrorAction Stop

#Enabla schedulars on RIM
#zx45781
#Update-QlikNode -id c98934-52b0-40ab-hey -schedulerEnabled
#zx45782
#Update-QlikNode -id 6d2c-46f0-9e96-songri -schedulerEnabled

#Disable schedulars on RIM:
#zx45781
Update-QlikNode -id c98934-52b0-40ab-hey -schedulerEnabled:$false
#zx45782
Update-QlikNode -id '6d2c-46f0-9e96-songri' -schedulerEnabled:$false

 

No specific error in QMC or in log.
From QMC:
2023-09-27 05:21:48 UTC
Changing task state from Started to FinishedFail
2023-09-27 05:21:48 UTC
ExitCode: 1
2023-09-27 05:21:48 UTC
Changing task state from Retry to Started
2023-09-27 05:21:48 UTC
Trying to start task. Sending task to slave scheduler zx45781

 

Regards

J

Labels (2)
1 Reply
janus2021
Contributor III
Contributor III
Author

Hi.

no one that has a ide?