We are getting below exception in method com.aspose.words.Document.deepClone() only for a particular word document. Word document is attached.
This is a critical issue for us as it is breaking a major feature. Please assist.
Caused by: java.lang.IllegalArgumentException: duplicate
at com.aspose.words.internal.zzX6D.zzXTf(Unknown Source)
at com.aspose.words.zzYLs.zzW65(Unknown Source)
at com.aspose.words.Document.zzXWH(Unknown Source)
at com.aspose.words.Node.deepClone(Unknown Source)
at com.aspose.words.Document.deepClone(Unknown Source)
Annex No. 004 - Devolucion y Cierre del Servicio HP FINAL IMPRESO 1506 (1).docx (98.5 KB)
@manmohansirionlabs The problem is not reproducible on my side using the latest 23.8 version of Aspose.Words for Java. Here is code I have used for testing:
Document doc = new Document("C:\\Temp\\in.docx");
Document clone = doc.deepClone();
clone.save("C:\\Temp\\out.docx");
Please, try using the latest version and let us know if the problem still persist on your side.
One point I missed while describing the issue.
This is occurring only Azure cloud platform not in AWS or local system. Can you try to reproduce in Azure at your end.
@manmohansirionlabs We will check the issue and get back to you soon. Could you please also specify which version of Aspose.Words you use?
We are using Aspose.words 22.2
@manmohansirionlabs Could you please try using the latest 23.8 version of Aspose.Words for Java on your side?