Error: Cannot insert a node of this type at this location - for doc with chart and shape

We have noticed an error (Cannot insert a node of this type at this location) happening when inserting a document to another document with Aspose Words version 14.9.0 and above. The same scenario works OK in Aspose Words version 14.8.0.
The error happens when inserting a document containing a chart with a shape inside (see the attached DocChart.docx) using the code snippet below:

Document source = new Document("c:/DocChart.docx");
Document doc = new Document();
NodeImporter importer = new NodeImporter(source, doc, ImportFormatMode.USE_DESTINATION_STYLES);
Iterator iterator = source.getFirstSection().getBody().getChildNodes().iterator();
while (iterator.hasNext())
    doc.getLastSection().getBody().appendChild(importer.importNode((Node), true));

Please let me know if the error can be fixed or if there is any workaround for this.

Hi Natasa,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-11246. Our development team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

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

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