How to run a cutdown list of Sitecore Commerce Install tasks

Just to be safe, take a copy of  Master_SingleServer.json under <deploy files unzipped folder>\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\Configuration\Commerce folder (for instance, c:\deploy\Sitecore.Commerce.WDP.2019.07-4.0.165\SIF.Sitecore.Commerce.3.0.28\Configuration\Commerce\Master_SingleServer.json).

Open the Master_SingleServer.json. There is an includes section in the file. Based on the error scenario for instance, in case of  this error - Ensure/Sync default content paths for environment AdventureWorksAuthoring failed in CommerceEngine-Initialize_EnsureSyncDefaultContentPaths : EnsureSyncDefaultContentPaths, based on the log file or by looking up Sitecore Commerce 9.2 JSON File Invocation Flow and Sitecore Commerce 9.2 Install: JSON - Task Dependency List (On-prem / Solr), find the json file from where the execution must resume and delete all the other JSON file includes in the Master_SingleServer.json. For instance, the difference between original vs modified Master_SingleServer.json will look like below -

Modified list of includes for reference:

"Includes": {
    "CommerceEngine-Initialize": {
      "Source": ".\\Configuration\\Commerce\\CommerceEngine\\CommerceEngine.Initialize.json"
    },
    "CEConnect-EnableDataProvider": {
      "Source": ".\\Configuration\\Commerce\\CEConnect\\CEConnect.EnableDataProvider.json"
    },
    "CEConnect-GenerateCatalogTemplates": {
      "Source": ".\\Configuration\\Commerce\\CEConnect\\CEConnect.GenerateCatalogTemplates.json"
    },
    "SXAStorefront-CreateDefaultTenantAndSite": {
      "Source": ".\\Configuration\\Commerce\\SXAStorefront\\SXAStorefront.CreateDefaultTenantAndSite.json"
    },
    "Publish-Commerce": {
      "Source": ".\\Configuration\\Commerce\\Common\\Common.PublishToWeb.json"
    },
    "SXAStorefront-EnableSearch": {
      "Source": ".\\Configuration\\Commerce\\SXAStorefront\\SXAStorefront.EnableSearch.json"
    },
    "CEConnect-EnableIndexing": {
      "Source": ".\\Configuration\\Commerce\\CEConnect\\CEConnect.EnableIndexing.json"
    },
    "RebuildIndexes": {
      "Source": ".\\Configuration\\Commerce\\Common\\Common.RebuildIndexes.json"
    },
    "RebuildDescendants": {
      "Source": ".\\Configuration\\Commerce\\Common\\Common.RebuildDescendants.json"
    },
    "RemoveSiteUtilityFolder": {
      "Source": ".\\Configuration\\Commerce\\Common\\Common.RemoveSiteUtilityFolder.json"
    }
  }

In the above case, the installation will resume from CommerceEngine.Initialize.json and will run till the actual end of install task list. Now, restart installation in Powershell and tasks will resume execution from the new start point -

Remember to replace the original Master_SingleServer.json after a successful run.

Comments

Popular Posts