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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
113
113
- Fixed passing a `Get-PnPRecycleBinItem` result or a GUID to `Restore-PnPRecycleBinItem` not working correctly. [#4667](https://github.com/pnp/powershell/pull/4667)
114
114
- Fixed `Get-PnPChangeLog` not returning the changelog [#4707](https://github.com/pnp/powershell/pull/4707)
115
115
- Fixed `-Description` and `-Sequence` not being applied when providing these through `Add-PnPApplicationCustomizer`[#4767](https://github.com/pnp/powershell/pull/4767)
116
+
- Fixed `-RetryCount` parameter being ignored with `Submit-PnPSearchQuery`[#4784](https://github.com/pnp/powershell/pull/4784)
// If we're not retrying, or if we're on the last retry, don't catch the exception
191
191
catch(Exceptionex)
192
192
{
193
-
if(RetryCount>0&&iterator<RetryCount)
193
+
if(RetryCount>0&&iterator<(RetryCount-1))
194
194
{
195
195
varwaitTime=5*(iterator+1);
196
196
197
-
WriteVerbose($"Search operation failed with exception {ex.Message}. Attempt {iterator+1} out of {RetryCount}. Retrying in {waitTime} seconds.");
197
+
WriteVerbose($"Search operation failed with exception {ex.Message.TrimEnd('.')}. Attempt {iterator+1} out of {RetryCount}. Retrying in {waitTime} seconds.");
198
198
199
199
Thread.Sleep(TimeSpan.FromSeconds(waitTime));
200
200
continue;
201
201
}
202
+
elseif(iterator==RetryCount-1)
203
+
{
204
+
WriteVerbose($"Search operation failed with exception {ex.Message.TrimEnd('.')}. Attempt {iterator+1} out of {RetryCount}. Done retrying.");
0 commit comments