Forum Sponsor:

Oracle Construction and Engineering (formerly Primavera) is transforming the world by helping organizations plan, build, and operate critical assets with on-premise and cloud-based project portfolio management solutions.  Learn more about Oracle Construction and Engineering...

We wish a warm welcome to the find people who are offering the ScheduleReader™ application. We hope to add more interesting news here shortly.

 

Schedule Reader™Free Trial

Tips on using this forum..

(1) Explain your problem as best as you can. Don't simply post "XYZ Isn't working". What is it you expected or wanted? What were you doing when you faced the problem? What have you tried to resolve - did you look for a solution using "Search" ? Has it happened just once or several times?

(2) It's also good to get feedback when a solution is found, return to the original post to explain how it was resolved so that more people can also use the results.

Export fail P6 XER to XML

3 replies [Last post]
Norbert Glazer
User offline. Last seen 4 days 1 hour ago. Offline
Joined: 7 Nov 2018
Posts: 3
Groups: None

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()

Replies

Santosh Bhat
User offline. Last seen 15 hours 3 min ago. Offline
Joined: 15 Apr 2005
Posts: 117

Norbert, I suggest you searh for this on the Oracle Support site using your support identifier.

Norbert Glazer
User offline. Last seen 4 days 1 hour ago. Offline
Joined: 7 Nov 2018
Posts: 3
Groups: None

Hi Santosh, 

i have the Primavera P6 Professional 17.7 i guess

as that the export format 17.7 or later is highlited

Santosh Bhat
User offline. Last seen 15 hours 3 min ago. Offline
Joined: 15 Apr 2005
Posts: 117

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."