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.


#3

The issues you have found earlier (filed as TASKSNET-3467) have been fixed in this update.


#4

Hi,
Thank you for releasing the fix, however, I can see that it was released only for .Net. When will this fix be available for Java (which we are using)?


#5

@SoftwarePlant,

This issue will be resolved in Aspose.Tasks for Java 19.9 as well. If there is still an issue than inform us here.


#6

Hi @Adnan.Ahmad,
Thank you for your reply. Can you share any ETA for the Java version? This unfortunately directly affects some of our Clients and we’d really like to let them know when the fix is supposed to be released.

Thanks in advance!


#7

@SoftwarePlant,

We regret to share that at present the concerned Java release for Aspose.Tasks 19.9 is not available. We request for your patience till the time the product will be shared online and we request for your patience in this regard.


#9

Hi,

Do you have any workarounds for making such MPP projects work properly?
Alternatively, do you have any information what exactly is the problem in MPP files?


#10

@SoftwarePlant
We tried to fix it in hotfix 19.9 but the simple fix of exception gave another issue which was really hard to fix.
We will try to fix it in the next hotfix release.


#11

Hi,
Do you have any information when the next hotfix (with fix for this bug) will be released?

This fix is crucial to us.


#12

@SoftwarePlant,

Can you please try using latest Aspose.Tasks for .NET 19.10 on your end. In case there is an issue please feel free to share with us.


#13

As we mentioned earlier we use JAVA version of Aspose.Tasks.


#14

@SoftwarePlant

I suggest you to please try using Aspose.Tasks for Java 19.9 in that case on your end.


#15

We’ve tried to use Aspose.Tasks 19.9 but in this version the bug still occurs.

This fix is very important to us.


#16

@SoftwarePlant,

I have worked with latest version Aspose.Tasks for .NET 19.10 and unable to observe any issue. We will be having corresponding Aspose.Tasks for Java 19.10 by the end of October in which issue is likely to be fixed.


#18

Hi, Do you guys have any information when the hotfix mentioned earlier will be released or maybe have you released it yet?


#19

@SoftwarePlant,

I like to share that Aspose.Tasks for .NET 19.10 is available online. However, the corresponding Aspose.Tasks for Java 19.10 has still not been rolled out. We request for your patience and will share the good news with you as soon as possible.