XML Import From Synchro Or Tilos Into SQLite Database Fails (Doc ID 2059625.1)

Last updated on OCTOBER 06, 2016

Applies to:

Primavera P6 Professional Project Management - Version 15.1.0.0 to 15.2.1.0 [Release 15.1 to 15.2]
Information in this document applies to any platform.

Symptoms

In P6 Professional, importing an XML file into SQLite database fails with error.

1. Exported from Synchro

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=15.1.0.13077, 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.

 


OR

 

2.Exported from Tilos

ERROR

Microsoft.Practices.Prism.Modularity.ModuleInitializeException: An exception occurred while initializing module 'CommandLineModule'.
- The exception message was: Nullable object must have a value.
- 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.InvalidOperationException: Nullable object must have a value.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Nullable'1.get_Value()
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: Nullable object must have a value.
- 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.


2. STEPS OR EVENTS THAT LEAD TO THE ISSUE OCCURRING
-----------------------------------------------------------------------------------------------
The issue can be reproduced at will with the following steps:

1. Start P6 Professional 15.1 connected to an SQLite DB.
2. Import an XML file that was exported from Synchro or Tilos.


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