MailMerge.Execute throws null exception on Word doc with unknown merge fields

Hi:


I have just started using the Aspose.Word version 16.5 to handle word merges. It seems that when I run call Execute(datatable) against a word document with merge fields that don’t exist as columns in that datatable the call throws an exception. I believe the older version just ignores those fields.

Are there options i need to set to prevent this from happening? Thanks for your help.
Hi Jason,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.