Free Support Forum - aspose.com

java.lang.IllegalArgumentException: key when document.getMailMerge().execute

Hello,

sometimes (not all times) I get an error when trying to execute document.getMailMerge().execute(String[], Object[]) width same data and same template.

The error is :

java.lang.IllegalArgumentException: key
at asposewobfuscated.zzFC.zzYw(Unknown Source)
at asposewobfuscated.zzFC.zzZ(Unknown Source)
at asposewobfuscated.zzFC.set(Unknown Source)
at com.aspose.words.zzZMO.(Unknown Source)
at com.aspose.words.MailMerge.execute(Unknown Source)

I’m using Aspose.Words 15.7 for JAVA

Any idea?

Thanks for your Help.

Hi there,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word document.
  • Please
    share a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document

Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.

Hello,


I fix the probleme, it was caused by a null field.

Thanks for your Help.

Hi there,

Thanks for feedback. It is nice to hear from you that you have solved your problem. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.