How to report error for unmerged fields using Java

Hi
I am using Aspose.words for java to perform the mailmerge operation. However, i want to know if it is possible to determine if any error has occured during the process.
For example : "there is a difference between the list of merge field names passed in parameter and the list of merge field names of the original document " . In my case, Aspose does not return any error and instead, when he does not find the name of the merge field in the list of keys, he replaces it with an old value in some sort.

@iheb2412

Aspose.Words does not replace the unmerged fields with old values. It also does not throw any exception if data source field names and mail merge field names are different.

Could you please share some more detail about your requirement along with input, problematic output and expected output documents? Please also share the code example that generates the document after mail merge. We will investigate the issue and provide you more information on it.