Error "Failed to Load Type for Module CommandLineModule" Importing MSP XML in P6 (SQLite Database) (Doc ID 2109939.1)

Last updated on OCTOBER 10, 2016

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 8.4.0.0 to 8.4.9.0 [Release 8.4]
Primavera P6 Professional Project Management - Version 8.4.0.0 to 8.4.9.0 [Release 8.4]
Information in this document applies to any platform.

Symptoms

Primavera P6 PPM connected to a SQLite Database.

When attempting to import MSP XML Project into P6 the process completes with errors but no project is imported. In log the following error occurs.

ERROR

Microsoft.Practices.Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'CommandLineModule'.
  - The exception message was: Object reference not set to an instance of an object.
  - The Assembly that the module was trying to be loaded from was:Primavera.Mercury.CommandLineModule, Version=8.4.0.11214, 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.NullReferenceException: Object reference not set to an instance of an object.
  at Primavera.Mercury.Importer.ImportCleaner.CleanupActivities(EntityContext sourceContext)
  at Primavera.Mercury.Importer.ImportCleaner.CleanSourceContext(EntityContext sourceContext, IVenusDataServiceContext targetContext, ILoggerFacade logger, ImportProjectSettings importProjectSettings, Dictionary`2 initialKeyDictionary)
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.DoImport()
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.Execute()
  at Primavera.Mercury.CommandLineModule.CommandLineModule.Initialize()
  at Microsoft.Practices.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: Object reference not set to an instance of an object.
  - The Assembly that the module was trying to be loaded from was:Primavera.Mercury.CommandLineModule, Version=8.4.0.11214, 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.

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms