Service not enabled. Service Name: ScriptExecutor

Which IIQ version are you inquiring about?

8.4P3

Please share any images or screenshots, if relevant.

    String iqServiceHost = "v02waiiqui01q.mgmnonprod.com";

  int iqServicePort = 6061;
  String replaceString = "Hello World";
  String APPLICATION_NAME = "AD";
  String empId = "603050";
  HashMap dataMap = new HashMap();

  Application app = context.getObject(Application.class, APPLICATION_NAME);

 
  //Process powerShellProcess = Runtime.getRuntime().exec(command);
  //powerShellProcess.getOutputStream().close();

  //return "Success";

 
  Rule ruleObj = context.getObject(Rule.class, "PS_Get_LastLogon3");

  String rulesrc=ruleObj.getSource();
  dataMap.put("postScript",ruleObj);
  dataMap.put("Application",app.getAttributes());
  AccountRequest accountRequest = new AccountRequest();
  accountRequest.setApplication(APPLICATION_NAME); 
  accountRequest.setOperation(AccountRequest.Operation.Modify);
  accountRequest.add(new AttributeRequest("empNum", ProvisioningPlan.Operation.Set, empId));
  dataMap.put("Request",accountRequest);
  RPCService service = new RPCService(iqServiceHost, iqServicePort, false, true);
  service.setConnectorServices(new sailpoint.connector.DefaultConnectorServices());
  RpcRequest request = new RpcRequest("ScriptExecutor", "runAfterScript", dataMap);
  System.out.println("** Before execute "+request.toXml());
  RpcResponse response = service.execute(request);
   System.out.println("** After execute response ** " +response);
  return "Done";

Please share any other relevant files that may be required (for example, logs).

Attached the IIQ service logs

IQSerivceLogs.txt (16.7 KB)

Share all details about your problem, including any error messages you may have received.

I am running the IQ powershell script from the server but getting script executor not enabled

In PROD i am able to execute the powershell but in nonprod i am getting issues, so i compared PROD and nonPROD IQservice files i see only diff is Script files in PROD but those not in nonprod so coped those files into nonprod and tried but no luck, so am i missing anything in the configuration level ?

@Remold

Disabling NON-TLS Port in IQservice got the trick, now i am able to run the Powershell script

Can you all dll files in the IQService folder are enabled and have access to be executed?

That is correct as per Sailpoint recommendation for IQService we need to disable non TLS ports in Production environment for IQSErvice.

<String>Service not enabled. Service Name: ScriptExecutor</String>

Hello @venumgm235 The fact that service’s not been enabled tells me that you might failing when instantiating AccountRequest();

I’d recommend going over the standard methods on IIQ 8.4P3 for instantiation in that class and verify methods such as:
setApplication, setOperation, add, put… and so on. Also not sure if you running the rule within IIQ or is some IDE, if so try a debugging process and set breakpoints to identify the parameters being sent within the method.