There is an issue about actual time, it will disappear after save, the code is below and you can check the attachment:
public static void main(String[] args) {
FileInputStream fstream = null;
try {
// Create a stream object containing the license file
fstream = new FileInputStream(“Aspose.Tasks.lic”);
// Instantiate the License class
License license = new License();
// Set the license through the stream object
license.setLicense(fstream);
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}finally {
try {
fstream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
// Create a new project
Project proj = new Project(“Task-Assignment-Test.mpp”);
proj.save(“New-Task-Assignment-Test.mpp”, SaveFileFormat.MPP);
}
Hi Zhencheng,
Thank you for contacting Aspose support team.
I have checked the attachments but observed that you have not sent the source file “Task-assignment-Test.mpp”. This is must required to reproduce the issue. Could you please send us the source file so that the scenario can be generated here? It will help us to observe the issue and provide assistance accordingly.
Hi,
You can unzip the file Assignment-Test.zip included in attachment, then you will find it what you need.
Hi,
Why you worked on .NET? I am sure that I marked the issue was on Java Env and the issue was produced on Java Lib, so I think you need to switch to Java Env to test it.
Hi,
We are sorry for the inconvenience caused.
We have tested with the latest version of Aspose.Tasks for Java 9.3.0 as well and could not face any problem as you have mentioned. You can find the output saved file attached here for your reference. Please have a look at it and let us know your feedback.
Hi,
It is obviously the issue have reproduced, the actual start and actual finish has not value, please refer to the picture I attached.
Hi Guozhencheng,
I am afraid that this issue is not re-produced with the available sample files. You are requested to provide the original MPP file (shown in the above attached image) which can be used to re-produce this issue. It will help us to observe the problem and provide assistance immediately.
We are sorry for any inconvenience caused to you in this regard.
Sorry, I uploaded a wrong file, I have attached the correct file, please check it again, thank you!
Hi,
We don’t see any difference of this sample file from the previous one you shared with us and, hence, no such issue is raised at our end. Please verify that you have provided us the right file. Providing the right file at your earliest will help us investigate the issue and assist your further as soon as possible. We appreciate your understanding in this regard.
Hi Kashif.
In your screenshot you’re only looking at the last task of the work plan, which doesn’t have any problem (as it’s a leaf task).
Only summary tasks in this MPP file will lose their actuals data when the file is opened with Aspose Tasks and then immediately saved to MPP (using the code that ZhenCheng put at the beginning of this thread).
I attached a screenshot highlighting the fields with missing actuals, as well as both MPP files (before and after).
The config I used to reproduce the issue:
- Win10
- MSP 2013
- Java 8
What’s really strange is that I later did remove about half the tasks of the original MPP file, and the issue couldn’t be reproduced. However it still can be reproduced when deleting only one task (the last one) and saving the MPP file, so I don’t think this is caused by a corrupted MPP file.
Hopefully this extra info should help you reproduce the issue and hopefully come up with an explanation or a workaround.
Kind Regards,
Etienne.
Hi Etienne,
Thank you for providing source MPP file. This issue is reproduced and logged under Id:TASKSJAVA-215 for further investigation by the product team.You will be automatically notified once any update is received in this regard.