Home > Forum > General > Timeout during execution of PowerShell script

Timeout during execution of PowerShell script
0

Hello together,

I execute a PowerShell script directly on a path in my Webcon workflow.
Beacuse I'am searched through some groups I got an timeout after one minute.
I get an error with the message: "Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding".
But where can I increase this timeout value to higher then a minute?

Thanks for your help
Maxi

MVP

Hi Maxi,

this refers to the config of the BPS Portal, but I would suggest to redesign your approach.
- Maybe a timeout won't occured if you execute is inside a BPS OnTimeout action.
- Maybe you can cache the result to a database/file which you can update periodically via Task Scheduler.
- If you don't need a result you could spawn a new PowerShell process.
- Create two PS actions. One which will start your logic, and another one to check the result inside a BPS timeout.

Just some ideas how I would cope with this situation since I don't like files which will be modified with each update. :)

Best regards,
Daniel