My Oracle Support Banner

Error: 'Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'CommandLineModule'.' When Importing a MSP XML File (Doc ID 2551416.1)

Last updated on DECEMBER 04, 2019

Applies to:

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

Symptoms

When attempting to import a Microsoft Project (MSP) XML, the following error occurs.

ERROR

PM Information Exception 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.8.31857, 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.NullReferenceException: Object reference not set to an instance of an object.
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.GetEntityType(XElement anXElement)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.LoadMSPFileDataContext(FileVersions fileVersion)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.LoadDataFromFile(String fileName)
  at Primavera.Venus.Data.FileStore.MSProject.MSProjectXmlStore.InitializeConnection(AliasDetail alias, String username, String password, String LanguageId, Boolean useTwoStepLogin, Boolean forceDirectConnection)
  at Primavera.Venus.DataRepository.DataServiceContext.InitializeConnection(AliasDetail aliasInfo, String username, String password, String LanguageId, Boolean forceDirectConnection)
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.d__85.MoveNext()
--- End of stack trace from previous location where exception was thrown ---


STEPS

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

  1. Login to P6 Professional
  2. Attempt to import an MSP XML file
  3. Note the import fails and the error in the log.

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.