We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Insert Image using Word Mail Merge with XML Data fails

MailMerge fails with an 400 ERROR

We have log that the error started this morning (2022-01-13 03:37 EST) Some calls were with success, others failed.

Since 2022-01-13 03:52 EST, all mailmerge failed with “Error: ExecuteMailMerge. Exception: There is an error in XML document (1, 40). => was not expected…”

No code changed on our side.
Any idea where to look ?

Any change log of the API that would be breaking ?


We are sorry for the inconvenience. I have tested the scenario with my sample template and data but was unable to replicate the issue. We will appreciate it if you please share your sample code and documents(template/data file) for investigation. We will look into these and will guide you.

We currently use version 21.10.0.

AsposeError.zip (66.3 KB)


Thanks for sharing the sample template and the data file. Please note using Aspose.Words Cloud mail merge feature you populate can populate an image from a publicly accessible HTTP path or a cloud storage path.


Your data have an issue with the referenced image, it is not a valid image path. For testing, I replaced it with a public accessible HTTP path and the image is populating without any issue.

I can’t pass URL for my image since the image is in the storage defined for the application. In our case it is an Azure storage. It should fetch the image from that location without needing a URL. This was working two days ago.

Thank you!


Yes, you can use an image from your cloud storage. I will appreciate it if you please share your sample code along with the credentials in a private message. We will further investigate the issue.

P.S: You can use flag button in my post for the private notification.

Here is the sample code


As requested above, please share your credentials(Client Id/Client Secret) in the private message as well. It will help us to reproduce and investigate the issue.