An element with the same key already exists (1635)

Hi,

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");

presentation.save("Test1-aspose.pptx", SaveFormat.Pptx);

Can you check this?

Thanks,
Zeljko

1635.zip (6.6 MB)

@Zeljko,

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 out..Test-aspose2.zip (3.3 MB)

Hi Adnan,

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

Thanks for your help.

Regards,
Zeljko

@Zeljko,

Thank you for sharing valuable feedback.