Extend the item deployment timeout

Abstract

How to extend Sitecore's built-in 30 second timeout for item deployment.

Sitecore has a 30 second built-in timeout for deploying items. If your item deployment takes longer than this, Sitecore stops the deployment and shows you an error message depending on the item type.

You can extend the timeout by changing the DeployItemTimeout setting.

To change the setting, create a patch file in the /App_Config/Include/ folder with the new DeployItemTimeout value that you want. For example, the following patch file changes the DeployItemTImeout setting to 1 hour and 30 minutes:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <pipelines>
      <deployDefinition>
        <processor type="Sitecore.Marketing.xMgmt.Pipelines.DeployDefinition.Deploy, Sitecore.Marketing.xMgmt" resolve="true">
          <DeployItemTimeout>00:01:30</DeployItemTimeout>
        </processor>
      </deployDefinition>
    </pipelines>
  </sitecore>
</configuration>