We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The SaveFileFormat.Mpp is suggested by the code completion, but invalid at build time

in Java (using IDEAIntelliJ) the value SaveFileFormat.Mpp (= 0) is proposed by the code completion (along with other values like Bmp, Csv), but at build time they can’t be found:

java: cannot find symbol
symbol: variable Mpp
location: class com.aspose.tasks.SaveFileFormat

Using SaveFileFormat.MPP leads to an error in the IDE, but works during build and execution.

What is wrong there?


Mpp (along with Bml, Csv, etc) were introduced in version 22.2
and MPP (and other upper case values) were removed in version 22.8.

Looks like IDE uses a reference to old version when building the project.
You can try resetting caches (File -> Invalidate Caches / Restart).

Problem solved.