Cannot install Sitecore Commerce Server update package on Sitecore XP 8.0 Update-3

  • When installing a Sitecore Commerce Server update package (for example, Sitecore Commerce Server Connect 8.0 rev. 8.0.211.0.update) on Sitecore XP 8.0 Update-3 using the Update Installation Wizard application, the wizard UI may fail with error messages similar to the following:

    ERROR:Some of the installation operation cannot be performed.
    An exception occured when trying to install 'addedfiles/_DEV/DeployedItems.xml'.
    Details: System.NullReferenceException: Object reference not set to an instance of an object.
       at Sitecore.Update.Utils.ConfigurationUtils.GetConfiguration(ConfigReader reader)
       at Sitecore.Update.Utils.ConfigurationUtils.GetConfigNodes(String xpath, ConfigReader reader)
       at Sitecore.Update.Configuration.Factory.ReloadSettings()
       at Sitecore.Update.Configuration.Factory.GetSetting(String name)
       at Sitecore.Update.Configuration.UPTSettings.GetSetting(String settingName, String defaultValue)
       at Sitecore.Update.Configuration.UPTSettings.get_DataFolder()
       at Sitecore.Update.Commands.BaseFileCommand.Serialize(XmlWriter writer, SerializationContext context)
       at Sitecore.Update.Commands.SerializationCommandFactory.SerializeCommand(ICommand command, XmlWriter writer, SerializationContext context)
       at Sitecore.Update.Installer.CommandToEntryConverter.PlainConvert(ICommand entry)
       at Sitecore.Update.Installer.CommandInstallerContext.CommandWriter(ICommand command, BaseSink`1 writer)
       at Sitecore.Update.Installer.CommandInstallerContext.RegisterRollbackCommand(ICommand command, BaseSink`1 writer, BackupCommand backupHandler)
       at Sitecore.Update.Installer.CommandInstallerContext.RegisterRollbackCommand(ICommand command, BaseSink`1 writer)
       at Sitecore.Update.Installer.CommandInstallerContext.RegisterRollbackCommand(ICommand command)
       at Sitecore.Update.Installer.Items.AddFileCommandInstaller.RegisterRollbackCommand(String path, AddFileCommand command, CommandInstallerContext context)
       at Sitecore.Update.Installer.Items.AddFileCommandInstaller.AddFile(String path, AddFileCommand command, CommandInstallerContext context)
       at Sitecore.Update.Installer.Items.AddFileCommandInstaller.DoInstall(ICommand cmd, CommandInstallerContext context)
       at Sitecore.Update.Installer.Items.BaseFileCommandInstaller.DoInstall(ICommand command, PackageEntry entry, CommandInstallerContext commandContext)
       at Sitecore.Update.Installer.Items.BaseItemCommandInstaller.Put(PackageEntry entry)
  • Fix the issue manually:

    1. In the web.config file (/configuration/configSections node), add the following line:
      <section name="sitecorediff" type="Sitecore.Update.Configuration.ConfigReader, Sitecore.Update"/>
    2. After the /configuration/configSections node, add the following line:
      <sitecorediff></sitecorediff>

    You can revert the above changes after you finish deploying Sitecore Commerce update packages.

  • Fix the issue automatically by running the PowerShell script.

    Note: you need to modify the $SitecoreWebsiteFolder parameter value and point it to your Sitecore XP website folder.

Applies to:

Sitecore Commerce 8.0, CMS 8.0 Update-3

May 08, 2015
October 04, 2019

Reference number:

437791

Keywords: 

  • Commerce Server