Sitecore Experience Commerce 9 Installation Timeout Errors

During the intallation of Sitecore XC9, you may encounter timeout errors on tasks such as pulishing to web, installing large modules or packages, reuilding indexes or other long running processes.

In my case, I got the following timeout error when generating catalog templates with the GenerateCatalogTemplates task:

GenerateCatalogTemplates_Timeout

Fix

In order to fix this, increase the value of the TimeoutSec parameter for the relevant function (based on which task is giving you a timeout error) in the SitecoreUtilityTasks powershell script located here:

\SIF.Sitecore.Commerce.1.2.14\Modules\SitecoreUtilityTasks\SitecoreUtilityTasks.psm1

In my case, it was the Invoke-GenerateCatalogTemplatesTask function:

GenerateCatalogTemplates_IncreaseTimeout