My Oracle Support Banner

Export To Microsoft Project XML Error "The given key was not present in the dictionary" (Doc ID 2505647.1)

Last updated on APRIL 06, 2020

Applies to:

Primavera P6 Professional Project Management - Version 18.8 and later
Primavera P6 Enterprise Project Portfolio Management - Version 18.8 and later
Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.8 and later
Information in this document applies to any platform.

Symptoms

Error attempting to Export to Microsoft Project XML format from P6 Professional:

ERROR

Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'CommandLineModule'.
  - The exception message was: One or more errors occurred.
  - The Assembly that the module was trying to be loaded from was:Primavera.Mercury.CommandLineModule, Version=18.8.2.29820, Culture=neutral, PublicKeyToken=null
  Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.
  ---> System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.ThrowHelper.ThrowKeyNotFoundException()
  at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
  at Primavera.Venus.Data.FileStore.MSProject.MappingHelpers.ActivityCodeTypeHelper.GenerateGuid(Entity entity)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectCommandProvider.InsertBatchEntity(Entity anItem, IHydrator Hydrator, String exportType, String nsOuterNamespace)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.d__83.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.d__63.MoveNext()
  --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
  at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
  at Primavera.Mercury.CommandLineModule.CommandLineModule.Initialize()
  at Prism.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo)
  --- End of inner exception stack trace ---
Failed to load type for module CommandLineModule.
Error was: An exception occurred while initializing module 'CommandLineModule'.
  - The exception message was: One or more errors occurred.
  - The Assembly that the module was trying to be loaded from was:Primavera.Mercury.CommandLineModule, Version=18.8.2.29820, Culture=neutral, PublicKeyToken=null
  Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.

STEPS

The issue can be reproduced at will with the following steps:

  1. Sign in to P6 Pro connected to PPM DB
  2. Import the customer's XER
  3. Attempt to export to MSP 2010 XML
  4. Errors displayed

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.