My Oracle Support Banner

Error Importing Microsoft XML File into P6 Professional Using SQLite: An Exception Occurred While Initializing Module 'CommandLineModule'. (Doc ID 2303379.1)

Last updated on NOVEMBER 01, 2023

Applies to:

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

Symptoms

Error importing Microsoft XML file into P6 Professional using SQLite


ERROR
-----------------------

Process completed successfully. See log file for details. The Finish button is disabled on the export dialog box once the import has finished.

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=17.7.0.24571, 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.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->

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.Mercury.Importer.ImportService.<GetParentClobberOption>b__52[TEntity](Entity x)

at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)

at Primavera.Mercury.Importer.ImportService.GetParentClobberOption[TEntity](TEntity sourceEntity, ClobberActionEnum sourceClobber)

at Primavera.Mercury.Importer.ImportService.SetEntityClobberOptionFromParent[TEntity](TEntity sourceEntity, ImportOptions importOptions)

at Primavera.Mercury.Importer.ImportService.ImportOneEntitySet[TEntity](EntitySet`1 source, IVenusDataServiceContext targetContext, ImportOptionsList options, ImportProjectSettings importProjectSettings, ILoggerFacade Logger)

--- End of inner exception stack trace ---

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

at Primavera.Mercury.Importer.ImportService.ExecuteImport(EntityContext sourceContext, IVenusDataServiceContext targetContext, ImportOptionsList options, ImportProjectSettings importProjectSettings, ILoggerFacade Logger, Dictionary`2 initialKeyDictionary)

at Primavera.Mercury.CommandLineModule.ExecuteImportExport.<DoImport>d__8.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.<Execute>d__0.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=17.7.0.24571, 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.

 


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

  1. Log into P6 Professional connecting to a SQLite database
  2. Use the import function
  3. Select a Microsoft Project XML
  4. Notice that import completes but Finish button is grayed out. Only way to close is by "X" closing the import wizard window
  5. Observe error in Detailed Import log file

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.