none
Production Word add-ins no longer inserting text RRS feed

  • Question

  • Greetings,

    I have a couple Word add-ins in production that have recently stopped working correctly. Each reads data from SharePoint and populates a template to create a heavily formatted report. Each add-in still successfully inserts pictures using the insertInlinePictureFromBase64 method, however all calls to the insertText method fail to work, i.e. the text is not inserted, but at no time are any errors thrown.

    It seems a recent update has introduced a nasty regression defect that makes the add-ins useless, but I have no diagnostic sign of a failure, the place holder text in the content controls simply does not update. I have stepped through the code in the debugger, I have also verified that no aspects of the affected production systems have changed in several months, I have also tried multiple machines, and reproduced the issue in development.

    Any help would be appreciated.

    Thanks! 


    Tuesday, July 25, 2017 4:00 PM

Answers

  • Hi Deepak,

    I was able to resolve the issue by doing some refactoring with some extra context.sync calls after my insertText and insertHtml invocations. The previous version set those values and did insertInlinePictureFromBase64  before calling the sync. I believe the regression is that calling insertInlinePictureFromBase64 zaps any unsynced work on the context.

    I will try to find some time later to create a simple reproduction of the code that doesn't require any backend services to demonstrate the problem. In the meantime, if some other poor soul encounters this issue, the current fix seems to be to sync everything up before moving on to images.

    --Doug 

    • Marked as answer by Doug WareMVP Wednesday, July 26, 2017 11:49 PM
    Wednesday, July 26, 2017 11:49 PM

All replies

  • Hi Doug Ware,

    please provide the sample code to reproduce the issue.

    we will try to make a test with the code and try to check the issue is related with update or not.

    you can inform us that which specific update causing this issue.

    so that we can make a test with that update.

    if issue is related with update then we will try to provide you a link of user voice you can submit your feedback there.

    and temporary to avoid the issue remove that update and move to previous update and wait till next update get launched.

    Regards

    Deepak


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, July 26, 2017 2:05 AM
    Moderator
  • Hi Deepak,

    I was able to resolve the issue by doing some refactoring with some extra context.sync calls after my insertText and insertHtml invocations. The previous version set those values and did insertInlinePictureFromBase64  before calling the sync. I believe the regression is that calling insertInlinePictureFromBase64 zaps any unsynced work on the context.

    I will try to find some time later to create a simple reproduction of the code that doesn't require any backend services to demonstrate the problem. In the meantime, if some other poor soul encounters this issue, the current fix seems to be to sync everything up before moving on to images.

    --Doug 

    • Marked as answer by Doug WareMVP Wednesday, July 26, 2017 11:49 PM
    Wednesday, July 26, 2017 11:49 PM