Free Support Forum - aspose.com

Exception thrown trying to call updateFields on a document with a REF to a table

I have a fairly simple document (attached in C27735.zip) that has a table, the table has been bookmarked, and a couple lines down it has a reference to the table (REF field in Word). I can load the document in to Aspose.Words, but when I call updateFields it throws an exception (shows below) that it cannot insert a node of this type at this location.

java.lang.IllegalArgumentException: Cannot insert a node of this type at this location.

at com.aspose.words.CompositeNode.b(Unknown Source)

at com.aspose.words.CompositeNode.insertAfter(Unknown Source)

at com.aspose.words.add.ajl(Unknown Source)

at com.aspose.words.add.aji(Unknown Source)

at com.aspose.words.add.ajf(Unknown Source)

at com.aspose.words.adn.ajK(Unknown Source)

at com.aspose.words.add.a(Unknown Source)

at com.aspose.words.add.b(Unknown Source)

at com.aspose.words.oo.QM(Unknown Source)

at com.aspose.words.Field.b(Unknown Source)

at com.aspose.words.Field.a(Unknown Source)

at com.aspose.words.pv.a(Unknown Source)

at com.aspose.words.pv.j(Unknown Source)

at com.aspose.words.ps.execute(Unknown Source)

at com.aspose.words.pv.jD(Unknown Source)

at com.aspose.words.pv.updateFields(Unknown Source)

at com.aspose.words.Range.updateFields(Unknown Source)

at com.aspose.words.Document.updateFields(Unknown Source)

Hi Scott,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7216 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-7216) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for .NET 18.9 update and this Aspose.Words for Java 18.9 update.