Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

TimeoutException for Exchange Connector implemented using Saviynt REST connector

KT
New Contributor III
New Contributor III

 

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.

3 REPLIES 3

SB
Saviynt Employee
Saviynt Employee

You can refer to the below link to configure timeout settings  for REST connector.

https://docs.saviyntcloud.com/bundle/REST-v23x/page/Content/Configuring-Provisioning-Tasks-and-Conne...

 


Regards,
Sahil

KT
New Contributor III
New Contributor III

We resolved this issue.

We need to update the parameter - PSTimeoutSeconds in IIS Saviynt app.

AshishDas
Regular Contributor II
Regular Contributor II

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