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