Issue with Autosaving in MS Word when using Office.js to Save to SharePoint Until Ribbon is Clicked

Michael Taglione 0 Reputation points
2025-05-27T04:16:19.54+00:00

Refer to this thread for additional details.

https://answers.microsoft.com/en-us/msoffice/forum/all/autosaving-ms-word-documents-from-office-js-doesnt/fb357509-ed49-43f7-8871-5aa64aac1a52

I’ve developed an office js taskpane app that allows users to load a template document, configure a templated document using content controls, then save it to a sharepoint online library.

The workflow is ...
user opens new word doc -> does stuff in taskpane ->
then using office js... -> 'template' doc loaded in -> 'template ' doc modified -> saved to sharepoint online->

I've noticed some odd behavior where on occasion the autosave state in the titlebar just hangs at saving… Its not a ghosting issue, I can work in the document without any issues but it still appears to be saving. When I look at the sharepoint library i can see that the save did go through but its concerning to users. Its a rough 50% chance that it happens.

I've isolated the issue to only appear when I modify the template doc prior to saving to sharepoint, and this is only 50% of the time. The modifications include around 1k edits to different content controls for around 3-4 seconds. Seems like it could be a throttling issue... maybe?

The interesting thing is that as soon as I click the File tab in the ribbon, or the save/sync button it completes 100% of the time. Almost like clicking either of these snaps the titlebar to wake itself up.

I’ve gone through the telemetry, Cleared the cache dozens of times. Tried different libraries, machines, versions. I’m out of resources.

Disabling background saves does resolve the issue. But not a production grade resolution id like to implement at my org.

I have versioning enabled, no approval workflows, 1 minor automate workflow in my sp library.

Current Version:

Microsoft® Word for Microsoft 365 MSO (Version 2504 Build 16.0.18730.20122) 64-bit

Seems potentially relevant to the release notes below:

Version 2503: April 08

Version 2503 (Build 18623.20178)

Resolved issues

Word

Resolved an issue in Word where users may encounter an issue with saving, seeing the message "saving..." in the title bar.

Microsoft 365 and Office | Word | For business | Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.