基本上:
我有一个包含4个包的项目.所有这些都有不同的连接管理器,除了一个在两个包之间共享的连接管理器,所以我把它作为一个项目连接管理器.
我有一个包含4个包的项目.所有这些都有不同的连接管理器,除了一个在两个包之间共享的连接管理器,所以我把它作为一个项目连接管理器.
>如果我尝试构建项目,我会收到以下错误.
>如果我将项目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)
解决方法
原文地址:https://www.jb51.cc/mssql/78925.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。