We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save() operation throws java.lang.IllegalStateException: A value with the specified key has already been added

Hi,

when I try to save attached "test_example.docx" file I get following exception:

SEVERE: null
java.lang.IllegalStateException: A value with the specified key has already been added.
at asposewobfuscated.zzM9.zzZ(Unknown Source)
at asposewobfuscated.zzM9.zzR(Unknown Source)
at com.aspose.words.zz18$zzZ.zzY(Unknown Source)
at com.aspose.words.zz18$zzZ.compare(Unknown Source)
at asposewobfuscated.zzB6.zzZ(Unknown Source)
at com.aspose.words.zz18.zzZ(Unknown Source)
at com.aspose.words.zzZZQ.zzG(Unknown Source)
at com.aspose.words.zzZZQ.truncate(Unknown Source)
at com.aspose.words.zzZZQ.zzZ(Unknown Source)
at com.aspose.words.zzZZN.zzU(Unknown Source)
at com.aspose.words.zzZZN.zzV(Unknown Source)
at com.aspose.words.zzZC1.zzR(Unknown Source)
at com.aspose.words.zzZBJ.zzx(Unknown Source)
at com.aspose.words.zzZ17.zzRL(Unknown Source)
at com.aspose.words.zz9Y.zzXF(Unknown Source)
at com.aspose.words.zz9Z.zz1o(Unknown Source)
at com.aspose.words.zzZPI.zzZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.zzXI(Unknown Source)
at com.aspose.words.Document.zz2a(Unknown Source)
at com.aspose.words.Document.getPageCount(Unknown Source)
at com.aspose.words.zz1C.zzY(Unknown Source)
at com.aspose.words.zz1C.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

We're only converting a docx file to PDF.

This works perfectly on 15.1, it does not work anymore on 15.7 and 15.8. We need to use 15.8 because it fixes a bunch of image-problems. Can this be resolved?

This is our conversion code:

Document doc = new Document(docxFile);
doc.getCompatibilityOptions().optimizeFor( MsWordVersion.WORD_2010);
doc.updateTableLayout();
PdfSaveOptions opts = new PdfSaveOptions();
opts.setJpegQuality(90);
doc.save(outputFilePath, opts);

Regards
Hi Willem,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.8.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-12493. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-12493) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.