Index rebuild timeout when installing Sitecore Experience Commerce


Description

When the "Reindex" task in Master_SingleServer.json is executed, the following error occurs:

Rebuilding index 'sitecore_core_index' completed.
Rebuilding index 'sitecore_master_index' ...
Install-SitecoreConfiguration : The operation has timed out.
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\1.2.1\Public\Install-SitecoreConfiguration.ps1:253 char:21
+ & $entry.Task.Command @paramSet | Out-Default
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

Solution

To resolve the issue, increase the time out of each index manually in the Invoke-RebuildIndexesTask function in the \Modules\SitecoreUtilityTasks\SitecoreUtilityTasks.psm1 file.