Scenario/Problem: You need to increase or decrease the data connection timeout limit.
Solution: Use the Set-SPInfoPathFormsService
cmdlet with the data connection timeout parameters.
Your form attempts to connect and access data sources based on your configured data connections. If the data source is inaccessible, busy, or down, InfoPath Forms Services needs a way to time out the connection so that the form or the browser doesn’t stop responding.
Use the -DefaultDataConnectionTimeout
and -MaxDataConnectionTimeout
parameters with the Set-SPInfoPathFormsService
cmdlet to set the timeout values, as shown in Listing 12.1.
Set-SPInfoPathFormsService -DefaultDataConnectionTimeout 15000
-MaxDataConnectionTimeout 25000
The timeout values are in milliseconds. The default value for DefaultDataConnectionTimeout
is 10000
(10,000 milliseconds, or 10 seconds), whereas the default value for MaxDataConnectionTimeout
is 20000
(20,000 milliseconds, or 20 seconds).
Tip
The default values are usually acceptable entries and do not need to be modified. However, if you have some long-running data processes or connectivity issues, you may want to increase these numbers slightly.
18.191.236.174