Aspose.Tasks for java mppFile

  • When loading the MPP file, it is prompted that no operation is allowed in calculation mode
    *exception java.lang.UnsupportedOperationException: The operation is not allowed in evaluation mode.
    The following code
    //asposeTask
    public static void asposeTaskTest() throws IOException{
    String path = “D:/EXPORT/test.mpp”;
    Calendar cal = Calendar.getInstance();
    cal.set(2017, 8, 1);
    //Create a project instance
    Project project = new Project();
    Task task1 = project.getRootTask().getChildren().add(“Task1”);
    task1.set(Tsk.START,cal.getTime());
    task1.set(Tsk.FINISH, cal.getTime());
    task1.set(Tsk.UID, 1);
    project.save(path, SaveFileFormat.MPP);
    }

@asdDFFD

I suggest you to please try using latest Aspose.Tasks for Java 20.8. In case there is still an issue then please share the source MPP file reproducing the issue on your end.