updateFields fails with ArithmeticException

Hello,

We experience an error when performing Document.updateFields() in a Word document.
We are using Aspose.Words for Java version 13.8.0. It seams related to the Table of Contents in the document. When removing the TOC, updateFields works fine. The error can be reproduced with attached document (content reduced).

Any help in resolving this issue is highly appreciated.

Kind regards,
Herm Flink

The error thrown:

INFO   | jvm 1    | 2014/05/12 09:57:57 | java.lang.ArithmeticException: / by zero
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUU.ëZ(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUU.ëZ(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUU.ëZ(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUU.(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëZSX.ëZ(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUT.ëgs(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëUT.moveNext(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëDK.ëZ(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.Document.updatePageLayout(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëQ2.perform(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëLA.execute(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëL7.ëOW(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.ëL7.updateFields(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.Range.updateFields(Unknown Source)
INFO | jvm 1 | 2014/05/12 09:57:57 | at com.aspose.words.Document.updateFields(Unknown Source)


Hi Herm,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for Java 14.4.1.0 and have not found the shared issue. Please use the latest version of Aspose.Words for Java 14.4.1.0.

Please let us know if you have any more queries.