You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Increases the request timeout allowing the call to last up to 3 minutes. The `ClientRuntimeContext` enforces a three-minute limit; when increasing the timeout to its maximum of three minutes, this threshold may still be exceeded.
87
+
78
88
## PARAMETERS
79
89
80
90
### -Connection
@@ -134,6 +144,20 @@ Accept pipeline input: False
134
144
Accept wildcard characters: False
135
145
```
136
146
147
+
### -IncreaseRequestTimeout
148
+
Extend the request timeout to permit command execution for up to 3 minutes.
149
+
150
+
```yaml
151
+
Type: Switch
152
+
Parameter Sets: (All)
153
+
154
+
Required: False
155
+
Position: Named
156
+
Default value: None
157
+
Accept pipeline input: False
158
+
Accept wildcard characters: False
159
+
```
160
+
137
161
### -LogLevel
138
162
Filter what log entries to return (All, Success, Warning, Error). Defaults to All
LogError($"Error: {e.Message}. Make sure you are granted access to the crawl log via the SharePoint search admin center at https://<tenant>-admin.sharepoint.com/_layouts/15/searchadmin/crawllogreadpermission.aspx");
171
+
if(e.Message=="The operation has timed out.")
172
+
{
173
+
174
+
LogError($"Error: {e.Message}. Default CSOM timeout is 180,000 ms (≈3 minutes). If you are querying large crawl logs or broad ranges, the server may take longer than that. ");
175
+
176
+
}
177
+
else
178
+
{
179
+
LogError($"Error: {e.Message}. Make sure you are granted access to the crawl log via the SharePoint search admin center at https://<tenant>-admin.sharepoint.com/_layouts/15/searchadmin/crawllogreadpermission.aspx");
0 commit comments