Free Support Forum - aspose.com

While merging slides: KeyNotFoundException: The given key was not present in the dictionary

Hi There, Aspose slides crashes with this exception while trying to merge 2 slides and save a new presentation. The 2 slides are each in individual presentations. The complete exception message:
com.aspose.slides.exceptions.KeyNotFoundException: The given key was not present in the dictionary.
at com.aspose.slides.Collections.Generic.Dictionary.get_Item(Unknown Source)
at com.aspose.slides.kt.do(Unknown Source)
at com.aspose.slides.kx.do(Unknown Source)
at com.aspose.slides.nr.do(Unknown Source)
at com.aspose.slides.na.do(Unknown Source)
at com.aspose.slides.na.do(Unknown Source)
at com.aspose.slides.kn.do(Unknown Source)
at com.aspose.slides.nx.do(Unknown Source)
at com.aspose.slides.akt.for(Unknown Source)
at com.aspose.slides.akt.default(Unknown Source)
at com.aspose.slides.akq.do(Unknown Source)
at com.aspose.slides.akq.do(Unknown Source)
at com.aspose.slides.akq.do(Unknown Source)
at com.aspose.slides.akq.do(Unknown Source)
at com.aspose.slides.akq.do(Unknown Source)
at com.aspose.slides.akq.(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.do(Unknown Source)
at com.aspose.slides.TextFrame.char(Unknown Source)
at com.aspose.slides.q.do(Unknown Source)
at com.aspose.slides.pu.do(Unknown Source)
at com.aspose.slides.pu.do(Unknown Source)
at com.aspose.slides.bb.do(Unknown Source)
at com.aspose.slides.agr.do(Unknown Source)
at com.aspose.slides.acy.do(Unknown Source)
at com.aspose.slides.acy.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)
…and more from where our application calls mergePages in the sample project.

One thing I noticed about these 2 slides is that they are different width, but same height.

The sample project is attached here:
MergePagesService.java.zip (1.2 KB)

The data is client confidential so I can email it to you once I have your email or if you make this thread private.

We are using the most updated aspose.slides version: 2020.5

Thanks, in advance.

@rahul.contiq,

I have observed the issue shared by you and request you to please share the source files used in your sample code that we may load on our end to verify the issue.

@mudassir.fayyaz,

I have PMed you the 2 powerpoint files causing issues. Please confirm you have received them.

Thanks.

@rahul.contiq,

I have observed the presentation files shared by you. A ticket with ID SLIDESJAVA-38112 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.

@mudassir.fayyaz,
What is the estimate for when a fix is possible? Our customer deployment is impacted because of this at the moment.

Or, can your team provide a workaround in the meantime?

Thanks.

@rahul.contiq,

I have verified from our issue tracking system and regret to share that at present the issue is unresolved. I request for your patience till the time the issue gets resolved. We will share the good news with you as soon as it will be fixed.

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