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

Free Support Forum - aspose.com

The reference node is not a child of this node on MailMergeWithRegions

On executing mailmerge with regions and datasource returning rtf content which is inserted by fieldMerging as HTML produces corrupt document structure and crashes with “The reference node is not a child of this node”

I attached an example junit test and depending inputfiles to reproduce the problem.
TestcaseHtmlInputWithinRegion.zip (29.8 KB)

@ns1045,

After an initial test with the licensed latest (21.8) version of Aspose.Words for Java , we were unable to reproduce any exception/error on our end (see outputFile produced by Aspose.Words 21.8.docx (25.4 KB)). So, we suggest you to please upgrade to the latest (21.8) version of Aspose.Words for Java.