TDS .update 包因对象引用错误而失败 - 8.0 更新 2

TDS .update package fails with object reference error - 8.0 update 2

我们正在尝试使用 TDS 更新包将项目部署到测试环境。当我们安装时,所有项目都被跳过,尽管项目标有“始终更新”。当我们查看日志时,我们发现在删除版本时存在对象引用错误。

然后我们使用 Deployment Manager 将项目更新为 部署一次 并选择字段级别部署下的所有字段。

Note: Image shows deploy action as 'always' above

这样做之后,包安装成功,没有错误记录。 post 安装日志显示该字段已更新。

2/18/2016-22:16: Updating field 'Description.en' for item '/sitecore/content/Repository/Data-Items/Common/ContactAgencies/Agency1'

但是,当我将 Sitecore 项目版本与 TDS 进行比较时,仍然存在差异,并且软件包没有更新该字段。

如果有人能帮助我们,我们将不胜感激!!

我们正在使用以下 Sitecore 实例

Sitecore.NET 8.0 (rev. 150223)

February 23, 2015

.NET Framework 4.0.30319.34003

© Sitecore. All rights reserved.

Database version: 500

顺便试过提供的解决方案here

这个问题是已知的,它出现在早于 5.1.0.8 的 TDS 版本上。如果您将版本更新到高于此版本 - 错误已在那里解决。

如果你想修复它,实际上有一个解决方法

您需要将以下内容添加到目标 Sitecore 实例的 web.config 中:

1. Locate the <configSections> element at the top of the web.config
2. Add the section "<section name="sitecorediff" type="Sitecore.Update.Configuration.ConfigReader, Sitecore.Update"/>"
3. Right after the close of the </configSections> element add "<sitecorediff/>" element

您可以阅读更多内容here

如果以下内容对您不起作用,请发送电子邮件至 Hedgehog 支持。

进一步调查该问题,我们发现以下 2 个数据提供者导致了对象引用错误。

<readonlycatalogprovider type="Sitecore.Commerce.Connect.CommerceServer.Catalog.ReadOnlyCatalogDataProvider, Sitecore.Commerce.Connect.CommerceServer" patch:source="CommerceServer.config">
  <CacheOptions.DisableAll>true</CacheOptions.DisableAll>
</readonlycatalogprovider>
<catalogprovider type="Sitecore.Commerce.Connect.CommerceServer.Catalog.CatalogDataProvider, Sitecore.Commerce.Connect.CommerceServer" patch:source="CommerceServer.config" />

Sitecore Commerce Server Connect 8.0 rev. 8.0.217.0.update is causing update packages to fail. Data providers in CommerceServer.config are causing null reference exception. TDS packages are working fine with Sitecore Commerce Server Connect 8.0 rev. 8.0.225.0.