and more in a single search tool across platforms. Read the announcement here. |
05/22/2023 06:31 AM - edited 05/22/2023 06:41 AM
Hi,
We have an Exchange connector implemented using Saviynt REST connector which invokes the PowerShell scripts from windows server.
When we are executing import job from Saviynt to import account data from Windows server into Saviynt, we are getting the below error.
fnExecuteScriptPowershell script taking too long
System.TimeoutException: Powershell script taking too long
at MVC_FIM.Services.PowerShellService.fnExecuteScript(String ScriptName)
ERROR 2023-05-22 04:17:41,320 3144429ms PSController ExecutePSScript - ExecutePSScriptPowershell script taking too long System.TimeoutException: Powershell script taking too long
at MVC_FIM.Services.PowerShellService.fnExecuteScript(String ScriptName)
System.Exception: Powershell script taking too long System.TimeoutException: Powershell script taking too long
at MVC_FIM.Services.PowerShellService.fnExecuteScript(String ScriptName)
at MVC_FIM.Services.PowerShellService.fnExecuteScript(String ScriptName)
at MVC_FIM.Controllers.PSController.ExecutePSScript(String Script)
After monitoring the job start and end time it looks like the default timeout is set to 20 sec, and if it takes more than 20 sec to complete the execution of the job then it is giving the above error.
How can we increase the timeout value?
Is there any config that we can change in IIS server?
Thanks.
Solved! Go to Solution.
05/23/2023 12:07 PM
You can refer to the below link to configure timeout settings for REST connector.
05/25/2023 01:15 AM
We resolved this issue.
We need to update the parameter - PSTimeoutSeconds in IIS Saviynt app.
05/26/2023 05:49 AM
Hi KT,
Can you please provide the code for import in Saviynt. We are not able to import via GET as Saviynt Support had instructed that GET is not allowed