G'day,
I'm trying to export a simple Primavera P6 (XER) schedule to XML and keep getting Export Fail and the following msg:
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=17.7.0.24571, 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.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Primavera.Domain.Base.Calendar.CreateWorkWeekDaysFromData(String data)
at Primavera.Domain.Base.Calendar.get_WorkWeekDays()
at Primavera.Venus.Data.FileStore.ApiXmlCalendarDataExport.ExportCalendarData(Calendar calendar, XmlElement CalNode)
at Primavera.Venus.Data.FileStore.ApiXmlExtraObjects.HandleExtraObjects(Entity anEntity, XmlElement aNode)
at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.ExportOneEntity(Entity anEntity, IEntityMetadata metaData, XmlElement root, WBS rootwbs)
at Primavera.Venus.Data.FileStore.ApiXmlProjectExporter.ExportProjectTables(Project project, IEntityMetadata projectMetaData, XmlElement root)
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 System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- 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.Venus.Data.FileStore.ApiXmlDatastore.<CommitChanges>d__f.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.<DoExport>d__20.MoveNext()
Norbert, I suggest you searh for this on the Oracle Support site using your support identifier.
Hi Santosh,
i have the Primavera P6 Professional 17.7 i guess
as that the export format 17.7 or later is highlited
A quick search on Oracle support says "This issue has been resolved and the fix has been included as part of the P6 18.6 Release and the 17.12.6.0 Patch Set. All subsequent Patch Sets for this release versions will also include the fix."