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
Write-Error"ImportJob with ID: $importId has encountered an exception: $_"
2253
2255
} Finally{
2254
2256
$ProcPercent= ([double](Coalesce $ProcPercent0))
2255
2257
Write-Progress-Id 2-Completed -Activity "_"
2258
+
$timeSpentPolling.Stop()
2256
2259
}
2257
2260
#User provided timeout and exit function with an error
2258
-
if($secondsSpentPolling-gt$MaxWaitTimeInSeconds){
2259
-
throw"Import-CrmSolution halted due to exceeding the maximum timeout of $MaxWaitTimeInSeconds."
2261
+
if($timeSpentPolling.Elapsed-gt$timeout){
2262
+
throw"Import-CrmSolution halted due to exceeding the maximum timeout of $timeout."
2260
2263
}
2261
2264
#detect a failure by a failure result OR the percent being less than 100%
2262
2265
if(($importManifest.result.result-eq"failure") -or ($ProcPercent-lt100) -or$anyFailuresInImport) #Must look at %age instead of this result as the result is usually wrong!
0 commit comments