An element with the same key already exists (1635)


When I load and try to save attached presentations, this exception occurs:

java.lang.RuntimeException: class com.aspose.slides.exceptions.ArgumentException: An element with the same key already exists

Here’s the code I use:

IPresentation presentation = new Presentation("Test1.pptx");"Test1-aspose.pptx", SaveFormat.Pptx);

Can you check this?

Zeljko (6.6 MB)


I have worked with source file shared by you using Aspose.Slides for Java 18.6 and unable to observe any issue. I have also shared my generated result with you for your kind reference. Can you please share environment details along with version you are using on your end so that we may further investigate to help you (3.3 MB)

Hi Adnan,

I can confirm there’s no issue with Aspose.Slides for Java 18.6.

Thanks for your help.



Thank you for sharing valuable feedback.