My Oracle Support Banner

Error 'Object reference not set to an instance of an object' When Attempting to Import an XML File (Doc ID 2534848.1)

Last updated on OCTOBER 24, 2019

Applies to:

Primavera P6 Professional Project Management - Version 18.8 to 18.8.7.0 [Release 18.8]
Information in this document applies to any platform.

Symptoms

When attempting to import a MS Project XML file, the following error occurs.

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.6.0.28611, 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__88.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 ---

Information Exception 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.6.0.28611, 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.

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!


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