Error: "Object Reference Not Set to an Instance of an Object" When Exporting to XML From the Professional Client (Doc ID 2215860.1)

Last updated on FEBRUARY 02, 2017

Applies to:

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

Symptoms

When attempting to export to XML format, the following error occurs:

Information Exception 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=16.1.4.20635, 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.Venus.Data.FileStore.ApiXmlProjectExporter.ExportProjectWbs(Project project, XmlElement projNode)
  at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.ExportProjectTables(Project project, IEntityMetadata projectMetaData, XmlElement root)
  at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.ExportOneProject(Project project, IEntityMetadata projectMetaData, Boolean isExternalProject)
  at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.ExportProjectTables(XmlDocument doc)
  at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.DoExport(XmlDocument doc)
  at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.Export(EntityContext anEntityContext, IApiXmlCommitOptions anExportConfig, String FileName)
  at Primavera.Mercury.CommandLineModule.ExecuteImportExport.DoExport(IMercuryCommandLine commandLine)
  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: 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=16.1.4.20635, 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. Export to XML format from the Professional Client
  2. Note the error displayed in the log file

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