微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sql-server – SSIS 2012项目连接管理器错误

基本上:
我有一个包含4个包的项目.所有这些都有不同的连接管理器,除了一个在两个包之间共享的连接管理器,所以我把它作为一个项目连接管理器.

>如果我尝试构建项目,我会收到以下错误.
>如果我将项目CM更改为包CM,它构建正常

显然,我有一个项目CM的事实是问题.

我能错过什么?

Error   21  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.sqlServer.Dts.Runtime.ReferenceId.ReferenceMap.Add(String key,String value,Boolean isExternal)  
   at Microsoft.sqlServer.Dts.Runtime.ReferenceId.RefIdProducer.AddRefIdAttribute(XmlElement element,String objectName,String objectId,ReferenceParserState state)   
   at Microsoft.sqlServer.Dts.Runtime.ReferenceId.RefIdProducer.GenerateRefId(XmlElement element,ReferenceParserState state)    
   at Microsoft.sqlServer.Dts.Runtime.ReferenceId.RefIdProducer.ProcessElement(XmlElement element,ReferenceParserState state)    
   at Microsoft.sqlServer.Dts.Runtime.ReferenceId.RefIdConverter.MapRefIds(IDTSPackage100 package,IDTSInfoEvents100 events,XmlDocument document)    
   at Microsoft.sqlServer.Dts.Runtime.DTSManagedXmlSerializationHelper.AfterSavePackagetoXML(IDTSPackage100 package,String& packageXml)     
   at Microsoft.sqlServer.Dts.Runtime.Wrapper.IDTSPackagePersist100.ClonePackagetoXML(Object& pvDestination,Boolean vbReturnDOM,IDTSEvents100 pEvents)    
   at Microsoft.sqlServer.Dts.Runtime.Project.SavePackage(IProjectStorage storage,Package package,String streamName,Boolean preserveVersionGuid)    
   at Microsoft.sqlServer.Dts.Runtime.Project.SavePackage(Package package,Boolean preserveVersionGuid)   
   at Microsoft.DataTransformationServices.Project.DataTransformationsprojectBuilder.IncrementalBuildThroughObj(IoUtputwindow outputwindow)  
   at Microsoft.DataTransformationServices.Project.DataTransformationsprojectBuilder.BuildIncremental(IoUtputwindow outputwindow)

解决方法

当您具有两次相同的连接管理器(例如:在两个软件包之间复制)并将其中一个升级为项目连接时,会发生这种情况.

一个包将显示“(project)remoteSystem”的连接管理器.第二个包仍将显示“remoteSystem”,并且不会显示新的项目级连接.

如果删除第二个包中的包级连接,则a)解决错误,b)项目级连接管理器将变为可见.

然后,您必须浏览引用已删除的连接管理器的所有组件,并将它们重定向到新的项目级连接.

原文地址:https://www.jb51.cc/mssql/78925.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐