RichApi.Error: GeneralException still occurs when updating styles #4908
Labels
Area: Word
Issue related to Word add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Type: product bug
Bug in the Office Add-ins platform or Office JavaScript APIs
We're still seeing the error from issue #4463 . Can you let us know when the fix will be available, or if there are any workarounds we can try in the meantime?
Your Environment
Expected behavior
delete custom styles and hide built-in ones before inserting new document using
context.document.insertFileFromBase64(base64String, "Replace", { importStyles: true });
will ensure the Styles Gallery shows styles identical to the specific document being inserted, without errors.Current behavior
When we delete custom styles and hide built-in ones before switching to a new document, an error occurs after several switches through documents. The more documents have styles, the faster the error occurs.
Steps to reproduce
context.document.insertFileFromBase64(base64String, "Replace", { importStyles: true });
context.document.insertFileFromBase64(base64String, "Replace", { importStyles: true });
and repeat the algorithm. It takes many switches to see the error.Additional details
I created a snippet containing the logic described above. Using this snippet in ScriptLab, switch through documents as shown in the video. It may take about 10-15 switches for the error to occur.
Useful logs
The text was updated successfully, but these errors were encountered: