Timeout Parameter (Connect-NetSuite Cmdlet)
Specifies the number of seconds an operation can run before it times out and is canceled.
Syntax
Connect-NetSuite -Timeout int
Data Type
int
Default Value
300
Remarks
This property controls how long an operation can run before timing out.
- If this property is set to 0, operations do not time out. They run until completion or encounter an error.
- If the timeout duration expires before the operation completes, the 本製品 throws an exception.
Handling Long-Running Queries
Some operations in NetSuite can take a long time, particularly when:
- Retrieving data from child tables.
- Querying tables with AggregateColumnMode set to ListAndRetrieve.
- Processing large datasets, such as retrieving 1000 SalesOrders in a single request.
To avoid timeout errors in these cases:
- Set Timeout to 0 to allow operations to run indefinitely.
- Use a smaller Pagesize to retrieve data in smaller chunks.
- Select specific columns instead of retrieving all columns.
This property helps manage performance and ensures operations complete successfully based on NetSuite’s API limitations.