Closed kolovrat566 closed 1 month ago
Looking at the log file you provided I wonder if this might be due to the file type you are importing:
Executing Import of Type: MSP
=================================================================================================================
Business Object Import Option Specific Delete Unreferenced
=================================================================================================================
This seems to suggest that you are importing an MSPDI file into P6? Ideally you need to be generating a PMXML file and importing that. When I import a sample PMXML file into my copy of P6 this is what the log file says:
Executing Import of Type: Flat
=================================================================================================================
Business Object Import Option Specific Delete Unreferenced
=================================================================================================================
Looking at the log file you provided I wonder if this might be due to the file type you are importing:
Executing Import of Type: MSP ================================================================================================================= Business Object Import Option Specific Delete Unreferenced =================================================================================================================
This seems to suggest that you are importing an MSPDI file into P6? Ideally you need to be generating a PMXML file and importing that. When I import a sample PMXML file into my copy of P6 this is what the log file says:
Executing Import of Type: Flat ================================================================================================================= Business Object Import Option Specific Delete Unreferenced =================================================================================================================
Sorry for the inaccuracy, the file is exported in the Microsoft Project XML format (in the Primavera application)
So as I understand it, you are exporting an MSPDI file (the Microsoft XML format) from P6, processing this file with MPXJ, then writing it from MPXJ as an MSPDI file, then re-importing it into P6 - is that correct?
No, i create a file with MPXJ in mspdi format and try to import it into P6
OK, I think you should be writing a PMXML file rather than an MSPDI file if you are intending to import your schedule into P6.
My understanding of the error you are seeing is that a resource can have a currency associated with it, but for whatever reason this is failing when you import the MSPDI file. Microsoft Project doesn't support the concept of currencies, so there is no currency information present in an MSPDI file. When importing MSPDI files P6 must be doing something as part of its own import process to set up currency correctly, which appears not to be working in this case.
If you create a PMXML file, all of this is taken care of for you.
Thank you very much for your time, you were absolutely right, the error is on the P6 side, when importing into Microsoft Project (app), everything works fine
I am facing a problem when exporting to mspdi When I add a ResourceAssignment to a task using the following code:
When I'm importing into Primavera I get the following error: (I use: net.sf.mpxj-for-csharp: 13.4.0, MSPDIWriter to create the file)
However, if you create a file in xer format, there is no error. (I am attaching a file with import information) 8b023e0f-7f55-420d-aa5f-724ab0732b05.xml.DetailImportLog.txt
Thanks in advance, let me know if you need more detailed information