内容迁移API:导出未完成 - 已添加具有相同密钥的项目 [英] Content Migration API: Export did not complete - An item with the same key has already been added

查看:78
本文介绍了内容迁移API:导出未完成 - 已添加具有相同密钥的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在使用内容迁移API导出和导入spWebs。目前我们收到一些spWebs错误。这来自ULS日志。


















内容迁移 开始出口。
内容迁移 [ - 2147024809] [System.ArgumentException] [已添加具有相同密钥的项目。]
内容迁移 导出未完成。

有没有人有一个想法?


Sven


PS:这是完整的堆栈跟踪:


一个项目已添加相同的密钥。 
系统 .ArgumentException:已经添加了具有相同键的项目。     System.ThrowHelper.ThrowArgumentException(ExceptionResource资源)
    在System.Collections.Generic.Dictionary`2.Insert(TKey键,TValue值,布尔加法)    在Microsoft.SharePoint.Deployment.MetaInfoHandler.Parse(Byte []
propertyBytes)    在Microsoft.SharePoint.Deployment.FileSerializer.HandleMetaInfo(ExportObjectManager objectManager,SPWeb parentWeb,Object metaInfoObject,SerializationInfo info)    在Microsoft.SharePoint.Deployment.FileVersionSerializer.GetDataFromVersionsRow(DataRow
fileData,SerializationInfo info,ExportDataFileManager fileManager,ExportObjectManager objectManager)    在Microsoft.SharePoint.Deployment.FileVersionSerializer.GetDataFromDataSet(Object obj,SerializationInfo info,StreamingContext
context)    在Microsoft.SharePoint.Deployment.FileVersionSerializer.GetObjectData(Object obj,SerializationInfo info,StreamingContext context)    在Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object
obj,ISerializationSurrogate surrogate,String elementName,Boolean bNeedEnvelope)     at Microsoft.SharePoint.Deployment.XmlFormatter.WriteArray(Object array,String name,Type objectType)    在Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object
obj,ISerializationSurrogate surrogate,String elementName,Boolean bNeedEnvelope)    在Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream,Object topLevelObject)    在Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()    
at Microsoft.SharePoint.Deployment.SPExport.Run()    在...

解决方案


一个非常广泛的错误......可能有多种原因......这可能是由于您的发布审批工作流程导致的此问题 例如审批人 已经批准了内容,但用户试图启动相同的
请求可能会导致此错误。 


我建议您将日志记录级别设置为详细并检查ULS记录有关此错误的更多详细信息。



希望这有帮助......


--------------- -------------------------------------------------- ----------------------------------------


请不要忘记" mark 答案作为答案 "
如果他们帮助
,也设置&qu OT;的"这对我们来说是一个促进博客
J


点击  here  到
了解更多信息。访问专用的
社区
论坛
  
分享 ,  探索  和  ; 讨论 &
专家关于Microsoft Kaizala。



Hi,

we are using the Content Migration API to export and import spWebs. Currently we are receiving errors with some spWebs. This comes from the ULS Log.

Content Migration Starting Export.
Content Migration [-2147024809] [System.ArgumentException] [An item with the same key has already been added.]
Content Migration Export did not complete.

Does anyone have an idea?

Sven

P.S.: This is the full stack trace:

An item with the same key has already been added.  System.ArgumentException: An item with the same key has already been added.     at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)     at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)     at Microsoft.SharePoint.Deployment.MetaInfoHandler.Parse(Byte[] propertyBytes)     at Microsoft.SharePoint.Deployment.FileSerializer.HandleMetaInfo(ExportObjectManager objectManager, SPWeb parentWeb, Object metaInfoObject, SerializationInfo info)     at Microsoft.SharePoint.Deployment.FileVersionSerializer.GetDataFromVersionsRow(DataRow fileData, SerializationInfo info, ExportDataFileManager fileManager, ExportObjectManager objectManager)     at Microsoft.SharePoint.Deployment.FileVersionSerializer.GetDataFromDataSet(Object obj, SerializationInfo info, StreamingContext context)     at Microsoft.SharePoint.Deployment.FileVersionSerializer.GetObjectData(Object obj, SerializationInfo info, StreamingContext context)     at Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)     at Microsoft.SharePoint.Deployment.XmlFormatter.WriteArray(Object array, String name, Type objectType)     at Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)     at Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream, Object topLevelObject)     at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()     at Microsoft.SharePoint.Deployment.SPExport.Run()     at...

解决方案

Hi,

Its a very broad error ... It could be various reasons ...it could be due to your publishing approval workflow that is causing  this  for example the approver  would have already approved the content but user is trying to initiate the same request could cause this error. 

I would suggest you set the logging level to Verbose and check the ULS logs for more detailed information about this error.

Hope this helps...

---------------------------------------------------------------------------------------------------------

Please don't forget to "mark the replies as answers" if they helped, also set "like" it’s a boost for us to keep blogging J

Click here to learn more. Visit the dedicated Community forum to shareexplore and talk to experts about Microsoft Kaizala.


这篇关于内容迁移API:导出未完成 - 已添加具有相同密钥的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆