Aspose throws InvalidOperationException when UpdateFields is called

Hi

when I try to do the following:

var doc = new Aspose.Words.Document(@"C:\Templ.dotx");
doc.UpdateFields();

I get the following InvalidOperationException:

at System.Collections.Stack.Pop()
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.x221bac6efb19ed4e()
at x59d6a4fc5007b7a4.x487cdc969fefe3d6.x47f176deff0d42e2()
at x4adf554d20d941a6.x5c28fdcd27dee7d9.xe481a91e9d1f486d(x7e263f21a73a027a xa955664f4f50999d, x56410a8dd70087c5 x62584df2cb5d40dd, Boolean x9bd63a942c164ecd)
at x4adf554d20d941a6.x5c28fdcd27dee7d9.x3e04636bf524a4cf(xb9e48f11d7f06ec9 x27f5ecb735ac9676)
at x4adf554d20d941a6.xf0b374f4c0172a4c.x57b3c9e650685d36(x56410a8dd70087c5 x5906905c888d3d98, x56410a8dd70087c5 x62584df2cb5d40dd, x56410a8dd70087c5 x0e990edf4549ee50, Boolean xa17853d20c8c42bd, Boolean x4d2b4f056cf5bb8b)
at x4adf554d20d941a6.xf0b374f4c0172a4c.x74f5a1ef3906e23c()
at x4adf554d20d941a6.x6d3ade29d016f4ea.x6343dea3b11ed4d8()
at x4adf554d20d941a6.x6d3ade29d016f4ea.x5f6867bc5a977cb1()
at x4adf554d20d941a6.x20de8d9377d7de69.xc3819e13f60dd8e6(xf6937c72cebe4ad1 x311e7a92306d7199)
at x4adf554d20d941a6.x09e62a55cab70965.x5de571cf1cd1652c(xf6937c72cebe4ad1 x311e7a92306d7199)
at x4adf554d20d941a6.x09e62a55cab70965.xc3819e13f60dd8e6(xf6937c72cebe4ad1 x311e7a92306d7199, Int32 xcd3a9f82634fe5f9)
at x4adf554d20d941a6.x71da84fff8849445.xc3819e13f60dd8e6(x53cb1139c5c64ee6 xd7e5673853e47af4, Int32 xcd3a9f82634fe5f9, Boolean x3175070523842c98)
at x4adf554d20d941a6.x4ddd0723770f9758.xb47a6df2eae4ba51()
at x4adf554d20d941a6.x4ddd0723770f9758.xc3819e13f60dd8e6(x3d1ad8ce75f0db3a xd3311d815ca25f02, Int32 xd284dd7d525c5491, Boolean x3175070523842c98, Boolean x4097fa47409be495)
at x4adf554d20d941a6.x3f7228e953be72ed.xd79114a9e7bc0d9e()
at x4adf554d20d941a6.x3f7228e953be72ed.xc3819e13f60dd8e6(x852fe8bb5ac31098 xe3e287548b3d01f5, Int32 xd284dd7d525c5491)
at x4adf554d20d941a6.x4af2add38e634ad4.xcbc2273143eac9ec(x852fe8bb5ac31098 xb6842aa1e60562e1)
at x4adf554d20d941a6.x4af2add38e634ad4.xc3819e13f60dd8e6(xc7f90d9c7c51cede xbbe2f7d7c86e0379)
at x4adf554d20d941a6.xac6c82c74ce247fb.xc3819e13f60dd8e6(Boolean xfad304b5f8f3bb5b)
at x4adf554d20d941a6.x4e2f8bff72d83f71.xc3819e13f60dd8e6()
at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651)
at Aspose.Words.Document.UpdatePageLayout()
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x384c03e4298b53bf()
at Aspose.Words.Range.UpdateFields()

What’ s special about the Template is that it contains a Macro Button definition.(you can find it attached)

I would expect that the field inside the macro button is updated.

Do you have any ideas on this issue?
Regards
Philipp

Hi Philipp,

Thanks for the additional information. While using latest Aspose.Words 11.0.0. I managed to reproduce this problem on my side. I have logged your issue into our bug tracking system. Your request has also been linked to the appropriate issue. Once we sort it out, we will let you know. Sorry for inconvenience.

Hi

can you already provide me with a date when this issue will be resolved?

Regards Phil

Hi Philipp,

Thanks for your inquiry. Unfortunately, your issue is pending for development. You will be notify as soon as it is fixed. Sorry for inconvenience.

ID: WORDSNET-5979
Status: Analysis Complete

Hi Imran,

Thanks for your update.
Even a developer build before it is officially released would help us.

Thanks
Philipp

Hi Philipp,

Thank you for inquiry. We are unable to commit any time estimate because this feature is still Unresolved. We will let you know once this feature is supported.

The issues you have found earlier (filed as WORDSNET-5979) 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 update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan