当我们尝试发布

时间:2017-07-25 18:20:02

标签: c# sitecore sitecore7.2

当我们尝试对现有的sitecore项目进行任何更改并将其发布到Web DB时,我们会遇到异常。

以下是例外 - 消息:无法在具有唯一索引“ndxUnique”的对象“dbo.VersionedFields”中插入重复的键行。重复键值为(48338b8b-7bfb-44e4-9715-3bafc826abfe,en,1,b05b85e8-20a6-4f1c-9a04-1645d9a262b4)。

该声明已被终止。 来源:Sitecore.Kernel    at Sitecore.Data.DataProviders.Sql.DataProviderCommand.ExecuteNonQuery()    at Sitecore.Data.DataProviders.Sql.SqlDataApi。&lt;&gt; c__DisplayClass15.b__14()    at Sitecore.Data.DataProviders.NullRetryer.Execute [T](Func 1 action, Action recover) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.WriteVersionedField(ID itemId, FieldChange change, DateTime now, Boolean fieldsAreEmpty) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.UpdateItemFields(ID itemId, ItemChanges changes) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.<>c__DisplayClass1d.<SaveItem>b__1b() at Sitecore.Data.DataProviders.NullRetryer.ExecuteNoResult(Action action, Action recover) at Sitecore.Data.DataProviders.Sql.SqlDataProvider.SaveItem(ItemDefinition itemDefinition, ItemChanges changes, CallContext context) at Sitecore.Data.DataProviders.DataProvider.SaveItem(ItemDefinition item, ItemChanges changes, CallContext context, DataProviderCollection providers) at Sitecore.Data.DataSource.SaveItem(ID itemID, ItemChanges changes) at Sitecore.Data.Engines.EngineCommand 2.Execute()    at Sitecore.Data.Engines.DataEngine.SaveItem(Item item)    at Sitecore.Data.Managers.ItemProvider.SaveItem(Item item)    at Sitecore.Data.Items.ItemEditing.AcceptChanges(Boolean updateStatistics,Boolean silent)    at Sitecore.Data.Items.EditContext.Dispose()    在Sitecore.Publishing.PublishHelper.CopyToTarget(Item sourceVersion)    at Sitecore.Publishing.PublishHelper.PublishVersionToTarget(Item sourceVersion,Item targetItem,Boolean targetCreated)    at Sitecore.Publishing.Pipelines.PublishItem.PerformAction.ExecuteAction(PublishItemContext context)    at Sitecore.Publishing.Pipelines.PublishItem.PerformAction.Process(PublishItemContext context)    at(Object,Object [])    在Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)    at Sitecore.Publishing.Pipelines.PublishItem.PublishItemPipeline.Run(PublishItemContext context)    在Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable 1 entries, PublishContext context) at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable 1个条目,PublishContext上下文)    在Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable 1 entries, PublishContext context) at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable 1个条目,PublishContext上下文)    at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.ProcessEntries(IEnumerable`1条目,PublishContext上下文)    at Sitecore.Publishing.Pipelines.Publish.ProcessQueue.Process(PublishContext context)

有人对此有任何想法吗?

1 个答案:

答案 0 :(得分:0)

最后得到了Sitecore支持的解决方案。基本上版本字段也应该出现在索引列中。我们没有对此进行任何手动更改,但它以某种方式发生。

Solution provided by Sitecore support