Timeout Parameter (Connect-NetSuite Cmdlet)
The value in seconds until the timeout error is thrown, canceling the operation.
Syntax
Connect-NetSuite -Timeout int
Data Type
int
Default Value
300
Remarks
If the Timeout property is set to 0, operations do not time out: They run until they complete successfully or encounter an error condition. If Timeout expires and the operation is not yet complete, the cmdlet throws an exception.
In NetSuite, operations can take a very long time to return if retrieving data from child tables or retrieving data from a given table with AggregateColumnMode set to ListAndRetrieve. For instance, it is not unheard of for it to take in excess of 10 minutes to retrieve 1000 SalesOrders in a single request from NetSuite when AggregateColumnMode is set to ListAndRetrieve. Unfortunately, this is a limitation of the NetSuite Web Services with no known solution. If you need to work with aggregate columns or child tables, set Timeout to 0, set a small Pagesize, and select specific columns instead of everything.