Unexpected subdocument type

when trying to rerender a document I get the following exception:

edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: com.aspose.words.PleaseReportException: Exception ‘Unexpected subdocument type.’ occured in Aspose.Words for Java 2.3.0.0. 
For free technical support, please post this error and the file in the Aspose.Words Forums <https://forum.aspose.com/c/words/8>.
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
at com.axxmit.aca.bps.engine.rendition.RenditionEngine.invoke(RenditionEngine.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
…
Caused by: com.aspose.words.PleaseReportException: Exception ‘Unexpected subdocument type.’ occured in Aspose.Words for Java 2.3.0.0.
For free technical support, please post this error and the file in the Aspose.Words Forums <https://forum.aspose.com/c/words/8>.
at com.aspose.words.la.ep(Unknown Source)
at com.aspose.words.kv.k(Unknown Source)
at com.aspose.words.kv.h(Unknown Source)
at com.aspose.words.kv.g(Unknown Source)
at com.aspose.words.kv.f(Unknown Source)
at com.aspose.words.kv.visitShapeStart(Unknown Source)
at com.aspose.words.kx.visitShapeStart(Unknown Source)
at com.aspose.words.Shape.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Cell.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Row.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Table.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Shape.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Paragraph.accept(Unknown Source)
at com.aspose.words.CompositeNode.acceptChildren(Unknown Source)
at com.aspose.words.Body.accept(Unknown Source)
at com.aspose.words.kx.a(Unknown Source)
at com.aspose.words.kx.run(Unknown Source)
at com.aspose.words.kx.a(Unknown Source)
at com.aspose.words.kx.b(Unknown Source)
at com.aspose.words.Document.a(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
…

Unfortunately I cannot attach the causing document due to secrecy reasons. What could be the cause for this exception? Is it related to attachments or could it be caused by documents not including any attachments?

Regards,
Werner

Hi
Thanks for your request. It is difficult to say what caused this problem without document.

  1. Please provide me code that will allow reproducing this issue.
  2. Try using the latest version of Aspose.Words for java (2.4.2). You can download it from here:
    https://releases.aspose.com/words/net
  3. You can remove content from your document just leave enough to allow us to reproduce this issue. And attach the document here (Only you and Aspose staff members can download the attached document).

Best regards.