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

Free Support Forum - aspose.com

UpdateFields call generates exception

Calling UpdateFields() on the attached document generates the exception shown below. The codes is as follows:

Document doc = new Document(fileIn);
doc.AcceptAllRevisions();
doc.UpdateFields();

Using Aspose.Words version 9.6.0

Object reference not set to an instance of an object.
at x59d6a4fc5007b7a4.x151a606008e93e1b.x721de5c630aa50a1(StoryType xdbbf47b5e620c262, x61ebdec02c254c25 xde1b8035b3bfcdec)
at x59d6a4fc5007b7a4.x151a606008e93e1b.xda0d8384ac6ee2cb(StoryType xdbbf47b5e620c262, x61ebdec02c254c25 xde1b8035b3bfcdec)
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.xe4beb7df913905b9(StoryType xdbbf47b5e620c262)
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.xccdd323e49321bd7(x56410a8dd70087c5 x5906905c888d3d98, StoryType xdbbf47b5e620c262)
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.x59d45bd53ceb92ee(StoryType xdbbf47b5e620c262)
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.xf3a1cfbffa44728c()
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.x47f176deff0d42e2()
at x4adf554d20d941a6.x5c28fdcd27dee7d9.xe481a91e9d1f486d(x7e263f21a73a027a xa955664f4f50999d, x56410a8dd70087c5 x62584df2cb5d40dd, Boolean x9bd63a942c164ecd)
at x4adf554d20d941a6.x5c28fdcd27dee7d9.x57bf52bb3d1c2d43(x56410a8dd70087c5 x62584df2cb5d40dd, x56410a8dd70087c5 x2aa5114a5da7d6c8, x7e263f21a73a027a x9b10ace6509508c0, Boolean x9bd63a942c164ecd)
at x4adf554d20d941a6.x5c28fdcd27dee7d9.x295cb4a1df7a5add(Field xe01ae93d9fe5a880)
at Aspose.Words.Fields.Field.x7ff30deb4e281744()
at Aspose.Words.Fields.Field.x295cb4a1df7a5add(x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880, x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880)
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf()
at Aspose.Words.Range.UpdateFields()
at Aspose.Words.Document.UpdateFields()

Thank you,
Ken

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.

Best regards,

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


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