Apologies if a similar issue has already been raised, but I couldn’t find anything related.
We have a web tool for sending mass emails that uses Aspose to process PDF and Word files. We’re experiencing some issues with Mail Merge, particularly when there are many recipients.
Recently, we had 69 PDF files, and in one batch (10 files got effected), the ‘Name’ tag was assigned an incorrect value, it was taken from the previous batch. We checked the logs but couldn’t find any clues to help resolve this issue.
If anyone has encountered this problem or has any suggestions on what to do next, I would appreciate your input. Additionally, I’m including a snippet of the code for reference
Yes the issue comes from the mailmerge.execute
it seems that in some rare cases it takes wrong data even when the logs that are placed above are mentioning correct data.
E.x.
Logs “Merging AAA-AAA”
Mail : “BBB” and it doesn’t mention of AAA-AAA
@andzejk Could you please attach your template, sample data and provide code that will allow us to reproduce the problem? We will check the issue and provide you more information.
Alternatively, you can create a simple console application that will demonstrate the problem.
hey Alex,
I am adding the template, please keep in mind that I removed unnecessary text just left the tags. The code I already shared in the main message but adding once again
@andzejk Thank you for additional information. But unfortunately, it is not clear how to reproduce the problem. As I can see in your code you pass row as data source for executing mail merge and do this for each iteration. So the only place where wrong data can be passed to the template is the place where wrong data are passed to MailMerge.Execute method. Could you please make sure the correct data are passed to Aspose.Words MailMerge.Execute method? Since Aspose.Words uses data passed to MailMerge.Execute method to fill the template.