An element with the same key already exists exception when create new Project()


#1

Hi,

We have Aspose Tasks Java 18.7.

We are having a problem with creating new Project. When we creating it we are getting the following exception:

Caused by: class com.aspose.tasks.private.Exceptions.ArgumentException: An element with the same key already exists_
com.aspose.tasks.private.Collections.Generic.SortedList$ThrowHelper.a(Unknown Source)_
com.aspose.tasks.private.Collections.Generic.SortedList.b(Unknown Source)_

This is a sample code and an MPP project file which causing problems:

project1.mpp.zip (26.1 KB)

	public static void main(String[] args) throws FileNotFoundException {

	File file = new File("project1.mpp");
	FileInputStream fileInputStream = new FileInputStream(file);

	Project project = new Project(fileInputStream);
}

We also tried to run this code in Aspose Tasks 19.7 but still getting the same exception :frowning:

Do You know what is the cause of this behaviour?


#2

@SoftwarePlant,

I have observed the issue shared by you and and issue with ID TASKSNET-3467 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.