Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Error on organization upgrade from Dynamics 365 9.0 to 9.1: msdynce_ServiceAnchor - An item with the same key has already been added

Posted on by 10

Dear community,

our goal is to upgrade our Dynamics 365 organization from version 9.0.x to 9.1.x by importing the organization with the Dynamics 365 Deployment Manager.

We tried the upgrade with different source and target versions, the last try was from 9.0.3.7 to 9.1.1.914.

The target is a fresh Dynamics 365 server with a fresh configuration database and no previous organization imports.

The upgrade fails with the error below.

  • Is this a known error?
  • Are there known solutions?
  • Are there preferred source and target versions for the upgrade from Dynamics 365 9.0 to 9.1? (Experience from the upgrade from 8.2 to 9.0 showed that using the latest versions is not always the appropriate solution.)

Remarks:

  • Our organization was initially created in Dynamics CRM 2011 and migrated through 2013, 2015, 8.0, 8.2 and 9.0.
  • The import of a vanilla test organization created directly in 9.0.3.7 works.

Infrastructure:

  • Microsoft Windows Server 2019 Standard
  • Microsoft SQL Server 2016 (SP2)
  • Hosted in a Hyper-V VM.

Thanks!

Best regards,
Johannes.


The error at the end of the log:

15:41:30| Error| Import Organization (Name=Test36591, Id=142d7f72-d933-e211-b70c-000c292d05a1) failed with Exception:
Microsoft.Crm.CrmException: Encountered non-terminal failures during DBUpdates. Failing actions are: msdynce_ServiceAnchor
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.ProcessFailedActions()
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.<>c__DisplayClass19_0.<Execute>b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Tools.Admin.OrganizationDBUpdateInstaller.Execute()
at Microsoft.Crm.Tools.Admin.ImportOrganizationInstaller.Import(Guid organizationId, String organizationUniqueName, String organizationFriendlyName, String sqlServerName, String databaseName, Uri reportServerUrl, ICollection`1 users, MultipleTenancy multipleTenancy, Boolean patchOnImport, OrgDbUpdateMode orgDbUpdateMode, OrgType orgType)

The originating error seems to be:

15:28:16| Info| PackageDeployer: Starting msdynce_ServiceAnchor install with RuntimeSettings: GeoName=ONP|OperationType=DatabaseHotFix|OrgSchemaType=CRM|OriginalDBVersion=9.0.3.7|CurrentDBVersion=9.1.1.914|IsUpgrade=False|ExternalStorageFcb=False|FileTypeFcb=True
15:28:38| Info| Failed to install package msdynce_ServiceAnchor on attempt 1.
15:28:38| Info| Failed to install msdynce_ServiceAnchorException: Microsoft.Crm.PackageDeployment.PackageDeployerException: Package msdynce_ServiceAnchor failed to install on attempt 0.
System.AggregateException: One or more errors occurred. ---> System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Import failed: An item with the same key has already been added.
at Microsoft.Crm.MultiTenantPackageDeployment.PdExecutor.Process(PackageDeploymentInputArgs input, JobOutput`1 output, CancellationToken ct)
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Import failed: An item with the same key has already been added. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x80040216
Message: System.ArgumentException: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
).<---

[20.08.2021 13:28:16]: MTPD: PackageLocation directory exists: C:\Program Files\Dynamics 365\Setup\Serviceability\Latest\Actions_Org\Install\PkgCache\V_9_1_0001_0914\msdynce_ServiceAnchor\V1970806742
[20.08.2021 13:28:16]: MTPD: Number of Plugins found: 1
[20.08.2021 13:28:16]: MTPD: All Plugin FullNames: LongName: Service PVS Package, ImportPackageFolderNamemsdynce_Service, Description: PVS Package for Service solution, Type:PVSPackage.PackageTemplate, AssemblyFullName: ServicePVS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Location: C:\PROGRAM FILES\DYNAMICS 365\SETUP\SERVICEABILITY\LATEST\ACTIONS_ORG\INSTALL\PKGCACHE\V_9_1_0001_0914\MSDYNCE_SERVICEANCHOR\V1970806742\SERVICEPVS.dll;
[20.08.2021 13:28:16]: MTPD: Located Package: msdynce_Service, Name: ServicePVS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Location: C:\PROGRAM FILES\DYNAMICS 365\SETUP\SERVICEABILITY\LATEST\ACTIONS_ORG\INSTALL\PKGCACHE\V_9_1_0001_0914\MSDYNCE_SERVICEANCHOR\V1970806742\SERVICEPVS.dll
[20.08.2021 13:28:16]: MTPD: PackageDeployer: Invoking PackageDeployer to import package msdynce_ServiceAnchor from (C:\Program Files\Dynamics 365\Setup\Serviceability\Latest\Actions_Org\Install\PkgCache\V_9_1_0001_0914\msdynce_ServiceAnchor\V1970806742\SERVICEPVS.dll) under user 3d55b578-d933-e211-b70c-000c292d05a1. Arguments.Location:C:\Program Files\Dynamics 365\Setup\Serviceability\Latest\Actions_Org\Install\PkgCache\V_9_1_0001_0914\msdynce_ServiceAnchor\V1970806742, FoundAssemblyLocation: C:\PROGRAM FILES\DYNAMICS 365\SETUP\SERVICEABILITY\LATEST\ACTIONS_ORG\INSTALL\PKGCACHE\V_9_1_0001_0914\MSDYNCE_SERVICEANCHOR\V1970806742\SERVICEPVS.dll
[20.08.2021 13:28:16]: MTPD: Resetting PackageDeployer operation completion state.
[20.08.2021 13:28:16]: MTPD: PrepareCoreObjects.fullPackageAssemblyPath: C:\Program Files\Dynamics 365\Setup\Serviceability\Latest\Actions_Org\Install\PkgCache\V_9_1_0001_0914\msdynce_ServiceAnchor\V1970806742\SERVICEPVS.dll
[20.08.2021 13:28:16]: MTPD: Starting PackageDeployer configuration parsing (updated).
[20.08.2021 13:28:16]: Reading the import configuration. Please wait.
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Solution Upgrade Infrastructure, version: 2.6.0.0 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service management controls extension, version: 9.1.20094.4003 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Automatic Record Creation for Dynamics 365 Customer Service application, version: 9.1.20094.4003 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Automatic Record Creation for Dynamics 365 Customer Service application, version: 9.1.20094.4003 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service, version: 9.0.5.56 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service Patch, version: 9.0.19111.1004 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service, version: 9.0.20093.1035 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Dependency Found : Dependency on solution msdynce_KnowledgeManagement found on target environment
[20.08.2021 13:28:16]: Found the solution: Customer Service Hub, version: 9.0.5.0056 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Dependency Found : Dependency on solution msdynce_Service found on target environment
[20.08.2021 13:28:16]: Found the solution: Customer Service Hub Patch, version: 9.0.20093.1035 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service Upgrade Scripts, version: 9.0.20093.1035 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Routing Rule, version: 9.1.20094.4003 (Managed)
[20.08.2021 13:28:16]: Reading the solutions. Please wait.
[20.08.2021 13:28:16]: Found the solution: Service Anchor Solution, version: 9.0.20093.1035 (Managed)
[20.08.2021 13:28:16]: Found the detailed data to import.
[20.08.2021 13:28:16]: MTPD: PackageDeployer successfully finished configuration parsing.
[20.08.2021 13:28:16]: MTPD: Starting PackageDeployer import operation.
[20.08.2021 13:28:16]: MTPD: Waiting for PackageDeployer completion...
[20.08.2021 13:28:38]: MTPD: PackageDeployer reported status [Failed] during import: Failed to load solution Automatic Record Creation for Dynamics 365 Customer Service application, version: 9.1.20094.4003. See the log file.
[20.08.2021 13:28:38]: MTPD: Logger LastError: Message: Importing solution threw and unforeseen exception
Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 15:28:38
Time : 20.08.2021
Error : Import failed: An item with the same key has already been added.
Stack Trace : at Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageCore.ImportCode.BaseImportCustomizations.ExecuteImportSolution(ConfigSolutionFile Sol, String sSolutionImportFilePath)
======================================================================================================================

[20.08.2021 13:28:38]: MTPD: Logger LastException: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Import failed: An item with the same key has already been added. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x80040216
Message: System.ArgumentException: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
).
[20.08.2021 13:28:38]: MTPD: PackageDeployerWrapper: OrganizationServiceFault details: Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x80040216
Message: System.ArgumentException: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--

[20.08.2021 13:28:38]: MTPD: Signaling PackageDeployer operation error: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Import failed: An item with the same key has already been added. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x80040216
Message: System.ArgumentException: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
).
[20.08.2021 13:28:38]: MTPD: PackageDeployer operation completed.
[20.08.2021 13:28:38]: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Import failed: An item with the same key has already been added. (Fault Detail is equal to Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x8004801E
Message: Import failed: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
Exception details:
ErrorCode: 0x80040216
Message: System.ArgumentException: An item with the same key has already been added.
TimeStamp: 2021-08-20T13:28:38.2161950Z
--
).
Detailed logs from PDCore:
[Start][256] ImportCustomizationLoader - Constructor
[Stop][512] ImportCustomizationLoader - Constructor
[Start][256] ReadConfig
[Information][8] Starting Config Reading process:
[Information][8] ReadingConfig from : C:\PROGRAM FILES\DYNAMICS 365\SETUP\SERVICEABILITY\LATEST\ACTIONS_ORG\INSTALL\PKGCACHE\V_9_1_0001_0914\MSDYNCE_SERVICEANCHOR\V1970806742\msdynce_Service\ImportConfig.xml
[Verbose][16] Unpacking config
[Information][8] Reading Solutions.. Please wait
[Verbose][16] New Batch Manager Created, Max #of Batches:50000, Max #of RequestsPerBatch:5000
[Verbose][16] Initialize CRM connection Started - AuthType: AD
[Verbose][16] Externally provided connection to CRM Service - Retrieving Version Info
[Verbose][16] Externally provided connection to CRM Service - Org Version: 9.1.1.914
[Information][8] Beginning Validation of CRM Connection
[Information][8] Validation of CRM Connection Complete, total duration: 00:00:00
[Information][8] Dependency Found : Dependency on solution msdynce_KnowledgeManagement found on target environment
[Information][8] Dependency Found : Dependency on solution msdynce_Service found on target environment
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=74e46158-24d2-4b39-a574-9d1187f78f65 : duration: 00:00:00
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=98ad9770-611d-4e89-9c2e-68cd789add7a : duration: 00:00:00
[Start][256] BaseImportCustomizations - Constructor
[Information][8] Found One Custom Extension
[Information][8] Deployment Target Organization ID: 142d7f72-d933-e211-b70c-000c292d05a1
[Information][8] Deployment Target Organization UniqueName: N/A - InProc Connection
[Information][8] Deployment Target Organization Version: 9.1.1.914
[Information][8] Deployment Target Organization Uri: N/A - InProc Connection
[Information][8] Deployment Target Organization Time marker: 08.20.2021 15:28:16 +02:00
[Information][8] Geo from RuntimeSetting: ONP
[Information][8] Geo for the Org: ONP
[Stop][512] BaseImportCustomizations - Constructor
[Start][256] BeginSolutionImport
[Information][8] Found 12 solutions to import
[Stop][512] BeginSolutionImport
[Information][8] Completed Config Reading process
[Stop][512] ReadConfig
[Verbose][16] Executed Command - WhoAmI : Execute (WhoAmI) request to CRM from IOrganizationService : RequestID=503383c0-c7a0-4f25-8a44-4a05d8a2fa11 : duration: 00:00:00
[Start][256] DoImportSolutionItem
[Start][256] CreateProgressItem
[Stop][512] CreateProgressItem
[Start][256] IsSolutionalreadyDeployed
[Start][256] DeterminSolutionAction
[Stop][512] DeterminSolutionAction
[Information][8] Executing OverrideSolutionImportDecision Custom code
[Information][8] OverrideSolutionImportDecision: systemSelectedImportAction is : Import
[Information][8] Solution being imported is SolutionUpgradeInfrastructure
[Information][8] Processing Solution Solution Upgrade Infrastructure(SolutionUpgradeInfrastructure) - Inbound version: 2.6.0.0 - Deployed Version 0.0.0.0, System Determined Import Action: Import ||-> Package Overrode Decision, Requesting Import Action: UserRequestedUpdateSameVersion
[Information][8] ImportSolution - Initial solution Solution Upgrade Infrastructure install of version 2.6.0.0
[Stop][512] ImportSolution
[Start][256] ImportSolution
[Information][8] Importing solution for Solution Upgrade Infrastructure Version: 2.6.0.0
[Start][256] RaiseUpdateEvent
[Stop][512] RaiseUpdateEvent
[Information][8] Executing PreSolutionImport Custom code
[Information][8] Service solution is not installed. Solution being installed is: SolutionUpgradeInfrastructure
[Information][8] Executing Solution Import Pre v8.0
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=e5bcef2d-8e9f-4970-9f53-1aa36e036a87 : duration: 00:00:00
[Information][8] Created new importjob id fea12838-de02-4880-87ce-9015341b4e79
[Stop][512] ImportSolution
[Stop][512] DoImportSolutionItem
[Verbose][16] Executed Command - ImportSolution : Executing ImportSolutionRequest for ImportSolutionToCrm : RequestID=bbb129c3-dbb7-4f6e-bcd9-3c315b6671e8 : duration: 00:00:11.9408086
[Start][256] CheckSolutionImportStatus
[Start][256] IsSolutionDeploymentComplete
[Information][8] Fetching Data for Solution Upgrade Infrastructure
[Information][8] Import for Solution Upgrade Infrastructure, Progress is : 100
[Verbose][16] Executed Command - Retrieve : Trying to Read a Record. Entity = importjob , ID = fea12838-de02-4880-87ce-9015341b4e79 : RequestID=1273720c-5270-4a4b-9ee7-3d97c613b684 : duration: 00:00:00.0310655
[Information][8] Solution Import Result = success
[Start][256] RaiseUpdateEvent
[Stop][512] RaiseUpdateEvent
[Stop][512] IsSolutionDeploymentComplete
[Start][256] GetSolutionIdInfo
[Stop][512] GetSolutionIdInfo
[Start][256] DoImportSolutionItem
[Start][256] CreateProgressItem
[Stop][512] CreateProgressItem
[Start][256] IsSolutionalreadyDeployed
[Start][256] DeterminSolutionAction
[Stop][512] DeterminSolutionAction
[Information][8] Executing OverrideSolutionImportDecision Custom code
[Information][8] OverrideSolutionImportDecision: systemSelectedImportAction is : Import
[Information][8] Solution being imported is msdynce_ServiceManagementControlsExtension
[Information][8] Processing Solution Service management controls extension(msdynce_ServiceManagementControlsExtension) - Inbound version: 9.1.20094.4003 - Deployed Version 9.1.20034.2007, System Determined Import Action: Import ||-> Package Overrode Decision, Requesting Import Action: UserRequestedUpdateSameVersion
[Information][8] ImportSolution - User Requested Update solution Service management controls extension version 9.1.20094.4003 with version 9.1.20034.2007
[Stop][512] ImportSolution
[Stop][512] IsSolutionalreadyDeployed
[Start][256] ImportSolution
[Information][8] Importing solution for Service management controls extension Version: 9.1.20094.4003
[Start][256] RaiseUpdateEvent
[Stop][512] RaiseUpdateEvent
[Information][8] Executing PreSolutionImport Custom code
[Information][8] Service solution is not installed. Solution being installed is: msdynce_ServiceManagementControlsExtension
[Information][8] Executing Solution Import Pre v8.0
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=20ff3f29-ad52-4cba-b923-03666b8ec272 : duration: 00:00:00.0156657
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=8571c5cd-7177-49af-ba4b-cacc434a991d : duration: 00:00:00
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=3c1db874-276f-4358-930f-8846703c1bb2 : duration: 00:00:00
[Information][8] Created new importjob id 74d552fa-b907-43fb-97a2-a10d2aa505b1
[Stop][512] ImportSolution
[Stop][512] DoImportSolutionItem
[Stop][512] CheckSolutionImportStatus
[Verbose][16] Executed Command - ImportSolution : Executing ImportSolutionRequest for ImportSolutionToCrm : RequestID=0c302b70-4200-4950-8ed3-f65f350967be : duration: 00:00:05.5806894
[Start][256] CheckSolutionImportStatus
[Start][256] IsSolutionDeploymentComplete
[Information][8] Fetching Data for Service management controls extension
[Information][8] Import for Service management controls extension, Progress is : 100
[Information][8] Solution Import Result = success
[Start][256] RaiseUpdateEvent
[Stop][512] RaiseUpdateEvent
[Stop][512] IsSolutionDeploymentComplete
[Start][256] GetSolutionIdInfo
[Stop][512] GetSolutionIdInfo
[Start][256] DoImportSolutionItem
[Start][256] CreateProgressItem
[Stop][512] CreateProgressItem
[Start][256] IsSolutionalreadyDeployed
[Start][256] DeterminSolutionAction
[Stop][512] DeterminSolutionAction
[Information][8] Executing OverrideSolutionImportDecision Custom code
[Verbose][16] Executed Command - Retrieve : Trying to Read a Record. Entity = importjob , ID = 74d552fa-b907-43fb-97a2-a10d2aa505b1 : RequestID=ad384b11-65ae-40db-a17b-f38f57b30213 : duration: 00:00:00
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=8fdaf44c-6011-46c7-9716-953a379aafa1 : duration: 00:00:00
[Verbose][16] Executed Command - RetrieveMultiple : GetEntityDataBySearchParms : RequestID=c3889f7a-a184-49d6-97d9-06eafab7e007 : duration: 00:00:00
[Information][8] OverrideSolutionImportDecision: systemSelectedImportAction is : Import
[Information][8] Solution being imported is AutomaticRecordCreation
[Information][8] Processing Solution Automatic Record Creation for Dynamics 365 Customer Service application(AutomaticRecordCreation) - Inbound version: 9.1.20094.4003 - Deployed Version 0.0.0.0, System Determined Import Action: Import ||-> Package Overrode Decision, Requesting Import Action: UserRequestedUpdateSameVersion
[Information][8] ImportSolution - Initial solution Automatic Record Creation for Dynamics 365 Customer Service application install of version 9.1.20094.4003
[Stop][512] ImportSolution
[Start][256] ImportSolution
[Information][8] Importing solution for Automatic Record Creation for Dynamics 365 Customer Service application Version: 9.1.20094.4003
[Start][256] RaiseUpdateEvent
[Stop][512] RaiseUpdateEvent
[Information][8] Executing PreSolutionImport Custom code
[Information][8] Service solution is not installed. Solution being installed is: AutomaticRecordCreation
[Information][8] Executing Solution Import Pre v8.0
[Information][8] Created new importjob id e7c2862b-d633-442f-8fc8-13c730143edf
[Verbose][16] Failed to Execute Command - ImportSolution : RequestID=3cd9f1d5-0d00-4864-91f5-2b99da3c234a
[Error][2] Message: Importing solution threw and unforeseen exception
Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 15:28:38
Time : 20.08.2021
Error : Import failed: An item with the same key has already been added.
Stack Trace : at Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageCore.ImportCode.BaseImportCustomizations.ExecuteImportSolution(ConfigSolutionFile Sol, String sSolutionImportFilePath)
======================================================================================================================

[Start][256] RaiseFailEvent
[Stop][512] RaiseFailEvent
[Stop][512] ImportSolution
[Stop][512] DoImportSolutionItem
[Stop][512] CheckSolutionImportStatus
[Error][2] Source : Microsoft.Crm.Extensibility
Method : Execute
Date : 20.08.2021
Time : 15:28:38
Error : Message: Import failed: An item with the same key has already been added.
ErrorCode: -2147188706
Trace:
[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[1b830950-e106-4ee1-b3fd-d348cb65dc8d: ObjectModel Implementation]


Stack Trace : at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
Inner Exception Level 1 :
==OrganizationServiceFault Info=======================================================================================
Error : Import failed: An item with the same key has already been added.
Time : 20.08.2021 13:28:38
ErrorCode : -2147188706
Date : 20.08.2021
Time : 15:28:38
Trace : Not Provided
======================================================================================================================
Inner Exception Level 2 :
==OrganizationServiceFault Info=======================================================================================
Error : System.ArgumentException: An item with the same key has already been added.
Time : 20.08.2021 13:28:38
ErrorCode : -2147220970
Date : 20.08.2021
Time : 15:28:38
Trace : Not Provided
======================================================================================================================


at Microsoft.Crm.Tools.Admin.DynamicsPackageInstaller.ProcessPackageDeploymentResult(PackageDeployerResult result, String pdLogs, String packageName, Int32 attempt)
at Microsoft.Crm.Tools.Admin.DynamicsPackageInstaller.InstallDynamicsPackageInternal(String packageName, FileInfo packageFile)
at Microsoft.Crm.Tools.Admin.DynamicsPackageInstaller.InstallDynamicsPackage(String packageName, FileInfo packageFile)
at Microsoft.Crm.Tools.Admin.DynamicsPackageInstaller.InstallOneInternal(PackageInstallInfo packageInstallInfo)

  • Suggested answer
    Johannes R Profile Picture
    Johannes R 10 on at
    RE: Error on organization upgrade from Dynamics 365 9.0 to 9.1: msdynce_ServiceAnchor - An item with the same key has already been added

    I wanted to share the resolution of this problem.

    We submitted a support request and the problem was solved by Microsoft in Nov-2021 with Update 9.1.6.

    Regards,

    Johannes.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans