Hello,
I am getting a IllegalStateException: Unexpected end of children nodes reached. when I run the following snippet of code on the attached template.
mailMerge.setCleanupOptions(MailMergeCleanupOptions.REMOVE_EMPTY_PARAGRAPHS |
MailMergeCleanupOptions.REMOVE_CONTAINING_FIELDS |
MailMergeCleanupOptions.REMOVE_UNUSED_FIELDS |
MailMergeCleanupOptions.REMOVE_UNUSED_REGIONS);
mailMerge.execute(new String[]{}, new Object[]{});
mailMerge.executeWithRegions(new DataSet());
The code runs in passes and performs the cleanup as the last step when all fields are merged. This is to remove any unused fields or paragraphs. The error is being thrown at «TableStart_MemberAuthInpatient»«TableEnd_MemberAuthInpatient» in the template as there is no data to be populated for the table.
The output should be that it should remove any unused fields without throwing an exception.
Please suggest what might be going wrong.
Thanks,
Hi there,
Thanks for your inquiry. Please read following articles about working with mail merge with regions. Following articles explain how to make a region and execute mail merge with regions. Hope this helps you.
Mail Merge with Regions Explained
How to Execute Mail Merge with Regions
Hi Tahir,
I went through the links you suggested, but they are not helpful with the issue I am facing.
I want to remove the empty table merge field:
«TableEnd_MemberAuth»
and I am getting the exception
Unexpected end of children nodes reached
Let me know if you have any other suggestions
thanks,
Hi there,
Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13642. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSNET-13642) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.