Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Word]Annotations in Word document are removed automatically after an amount of idle time #5364

Open
bamby084 opened this issue Feb 6, 2025 · 2 comments
Assignees
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Platform: Desktop Platform: Online Issues occurred on online platform

Comments

@bamby084
Copy link

bamby084 commented Feb 6, 2025

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop, Office on the web
  • Host [Excel, Word, PowerPoint, etc.]: Word

Current behavior

If we don't have any activities on Word document for an amount of time, let's say 30 minutes. Then when getting back to the document, annotations are removed automatically.

Expected behavior

Annotations should not be removed. Or if they are, there should be such an event so I know to recreate them.

Steps to reproduce

  1. Create some simple annotations as described in the Microsoft sample document.
  2. Leave the document there for a while, let's say 30 mins.
  3. Get back to the document, type some text. Now you will see the annotations are gone.
@microsoft-github-policy-service microsoft-github-policy-service bot added the Area: Word Issue related to Word add-ins label Feb 6, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: attention 👋 Waiting on Microsoft to provide feedback label Feb 6, 2025
@guoms1
Copy link

guoms1 commented Feb 10, 2025

Hi, @bamby084

Sorry, but I couldn't consistently reproduce the issue you encountered. I waited for several hours in Word Desktop, and the annotations were still present(screenshot).

I haven't tested this in Word Online, but as far as I know, an online session closes after 30 minutes of inactivity. This could likely cause annotations to be lost since they are not part of the document content and won't be saved.

Let me know if you have any additional insights!

@guoms1 guoms1 added Needs: author feedback Waiting for author (creator) of Issue to provide more info Platform: Online Issues occurred on online platform Platform: Desktop and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Feb 10, 2025
@bamby084
Copy link
Author

bamby084 commented Feb 11, 2025

Hi @guoms1 , thank for checking the issue. I can always reproduce the it. Here is the basic steps in ScriptLab:

  1. Open new Word document, start ScriptLab addin
  2. Create a new snippet
  3. Copy and paste the sample code on Microsoft document for creating annotation to run() method: https://learn.microsoft.com/en-us/javascript/api/word/word.annotationset?view=word-js-preview
  4. Click Run in this task pane on ScriptLab menu, then click on Run button on the addin
  5. Now in the document, you can see the annotations are created as expected
  6. Minimize the Word document and leave it there for a while, for example 1hr
  7. After 1hr, getting back to Word, click on the document to make sure Word has focused and type something in the document (this is important step) then you will see the annotation were created before will disappear.

Image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Word Issue related to Word add-ins Needs: attention 👋 Waiting on Microsoft to provide feedback Platform: Desktop Platform: Online Issues occurred on online platform
Projects
None yet
Development

No branches or pull requests

2 participants