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

Free Support Forum - aspose.com

IndexOutOfRangeException in time of UpdateFields process execution

Hello!

I have a single page document with some texts and a table. I just try to open it, update all fields with UpdateFields() method, and finally save the document, but from the UpdateFields method execution I get an IndexOutOfRangeException. (3272)
The mentioned document is attached. Document.zip (55.7 KB)

The relevant code part is the following:

var doc = new Aspose.Words.Document(“path”);
doc.UpdateFields();
doc.Save(“path”);

Best Regards,
Kolumbán Sándor

@palmagosandrea,

After an initial test with the licensed latest version of Aspose.Words for .NET i.e. 20.4, we were unable to reproduce this issue on our end. So, we suggest you please upgrade to the latest version. Hope, this helps.

Thank you for the answer!

I checked the error with the latest version of Aspose.Words, and really I don’t get the issue with it. Sorry for the inconvenience.

Best Regards,
Andrea Pál-Magos

@palmagosandrea,

Thanks for your feedback. It is great that you were able to resolve this issue using the latest version of Aspose.Words on your end. Please let us know any time you may have any further queries in future.